Re:How I learned to stop worrying and love macros
by birdyrooster on Friday August 19, 2022 @08:18PM
(#32527682)
Macros and (nigh) mandatory code generation and boilerplate are proof your language sucks. It might go fast, but it sucks.
[ Parent
| on HN ]
Re:How I learned to stop worrying and love macros
by kastagg on Friday August 19, 2022 @10:22PM
(#32528409)
Doing some calculations at compile time is useful. What sucks is when the language for expressing this is difficult to think about and interacts poorly with normal code.
Re:How I learned to stop worrying and love macros
by quickthrower2 on Friday August 19, 2022 @10:06PM
(#32528343)
It might prove that the language has decided not to have too many language features.
Re:How I learned to stop worrying and love macros
by logdahl on Saturday August 20, 2022 @06:52AM
(#32530993)
I dont know, I see macros and code generators as the one tool to battle boilerplate. Functions often have boilerplate syntax rules. Macros do not :^)
Re:How I learned to stop worrying and love macros
by zelphirkalt on Saturday August 20, 2022 @04:45AM
(#32530452)
What sucks much more is, when one cannot extend the language properly and it needs a language commitee to change anything. Or when the way to extend it is so mistake and error prone, that one cannot get it right, needs many eyes viewing it for a few years, before it becomes probably correct.