2 ms·
The looks of this makes me want to go back to Lisp.
by Koshkin 7y ago
The looks of this makes me want to go back to Lisp.
- estebank 7y agoThis macro system is very powerful, if kludgy, but it's not the final version of the system. Macros 2.0 has been in the works for a while now and will eventually have a much nicer syntax for macro definitions. When Rust 1.0 was gearing up for release the team (rightly imo) decided that launching then with known-imperfect-but-usable macros was a worthwhile trade-off.
- steveklabnik 7y agoIt was designed and implemented by some huge Racket fans, incidentally...
- simias 7y agoRust's macros are unpleasant to write and debug but very nice to use. The language is also much more expressive than C so I don't find myself needing to (ab)use macros quite as often. Of course lisp macros are on a different level but the languages are massively different so it's not necessarily a super fair comparison.
- Eikon 7y agoOne issue with macros is that they are currently breaking most IDE integrations.