Writing macro_rules macros by hand really does give me the "programming is writing weird gibberish"-feel.
-
Show this thread
-
Replying to @yoshuawuyts
wait are there other ways to write macros that aren't "by hand"
4 replies 0 retweets 2 likes -
Replying to @mountain_ghosts @yoshuawuyts
We could get real Meta and write macros that write macros to do what we want. Not necessarily practical.
2 replies 0 retweets 2 likes -
Static if does this
1 reply 0 retweets 2 likes -
Replying to @sgrif @mgattozzi and
Also the only reason it's not practical is because of an RFC that prevents macros from redefining themselves. I may or may not have once explored having the `table!` macro in Diesel redefine itself to avoid the need to manually call `allow_tables_to_appear_in_same_query!`
1 reply 0 retweets 1 like -
I think we need to write an RFC to recant said RFC
1 reply 0 retweets 0 likes
I'd be on board. Macros are just closures and if they can't re-assign variables (which might be themselves) what are we even doing here
-
-
not god's work i'll tell ya that
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.