Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



If 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.


Of course. But there is no need to write ugly macros. Any macro of any complexity can be written in a nice and clean way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: