3 ms·
Macros should never be ugly. There are multiple ways of using compile-time metaprogramming in a nice and clean way. Maybe even in Rust, although I have not tri
by sklogic 11y ago
Macros should never be ugly. There are multiple ways of using compile-time metaprogramming in a nice and clean way.
Maybe even in Rust, although I have not tried it yet.
- evincarofautumn 11y agoIf your macro is ugly, but it makes your code pretty, it might mean you’ve successfully sequestered some ugliness, which is probably a good thing.
- sklogic 11y agoOf course. But there is no need to write ugly macros. Any macro of any complexity can be written in a nice and clean way.