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

using macros to deal with boilerplate, although useful, though is of a different order than things that simply cannot be expressed without macros


Which things cannot be expressed without macros? Macros run at compile time, and just output normal code in the language.

I think being able to generate types is a very useful and important use of macros. In fact, (depending on whether or not your macros can have side effects) you could use macros to implement something like F#'s type providers.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: