I use macros in Racket, and generally the idea is that they mix with the language until its not clear which are the language constructions and which are the user defined macros.
It's absolutely possible. I actually implemented it the way I did more as an experiment to see if it was possible, and when it turned out that it was, decided that it was ridiculous enough to be awesome.
I probably wouldn't ever use a macro like this in code worked on by multiple people, but for my own personal side project, I'm happy to abuse Rust's flexibility for my own enjoyment.
3 comments
[ 3.8 ms ] story [ 19.9 ms ] threadFor example, instead of
I’d written it as Is this possible in Rust, or comas are special?I probably wouldn't ever use a macro like this in code worked on by multiple people, but for my own personal side project, I'm happy to abuse Rust's flexibility for my own enjoyment.