once again I fucking hate dtolnay for blocking reflection in rust so that his macro work doesn't become obsolete
-
@[email protected] So, yeah, I'm annoyed that not only is Rust the first time I've had to write macros (rather than writing thousands of line of difficult to maintain boilerplate) but that it just so happens to be championed by one of the preeminent garbage fuckers in tech.
-
@[email protected] alright, this is very validating and I appreciate it, hah. People bang on about how great serde is and yeaaaah it's certainly the tool in use, isn't it, but. is it great? It fills a niche but does that mean it's good.
-
@[email protected] fuck it, gonna create a makefile for my project that calls a bash script that generates rust code through extensive use of
sed
then calls cargo.
/s ...
... or am I. -
@aud very welcome. we're glad that our thirty years studying the theory and practice of parsing is good for a real problem, which is to say an emotional problem
-
Asta [AMP]replied to Asta [AMP] last edited by [email protected]
@[email protected] Rust's macros are also rather limited; for instance, you want to do something like, say, I dunno, copy trait/fields from one struct to another? Guess what: no, not without substantial duplication of effort. You can't create a macro that includes a different struct/etc that you're calling this from. So now you're stuck with boilerplate code, except it's handwritten in your macro function (which, whatever, fine, I guess) except now it's not type checked because it cannot be.
-
@[email protected] I have so many emotions about programming and practices and the people involved : D
-
d@nny "disc@" mc²replied to Asta [AMP] last edited by
@aud @jonny @ireneista would like it if our choice of mongers were a bit wider than war fish and cheese
-
Asta [AMP]replied to d@nny "disc@" mc² last edited by
@[email protected] @[email protected] @[email protected] gonna start monging some peace and love. fuckers beware.
-
d@nny "disc@" mc²replied to Asta [AMP] last edited by
@aud @ireneista i used make for coffeescript stuff in college, be the change
-
d@nny "disc@" mc²replied to d@nny "disc@" mc² last edited by
@aud @ireneista also awk is probably more useful for code generation, the rapist defending crypto guy has an assembler in awk
-
Asta [AMP]replied to d@nny "disc@" mc² last edited by
@[email protected] @[email protected] (I actually had written awk before but remembered I barely know how to use it)