Hacker News new | ask | show | jobs
by platz 4053 days ago
using macros to deal with boilerplate, although useful, though is of a different order than things that simply cannot be expressed without macros
1 comments

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.