Skip to content

Comment on Scala Macros: “Oh God Why?”

Comments

Macros make language design experimentation easier. This issue is not orthogonal to tackling the other issues the OP cares about.

There are good reasons to doubt the overall value of macros in production code - I won't argue this either way - but OCaml has had success by separating the macro expansion mechanism (camlp4) from the main language. People who want macros can have them, people who want a production language without macros can have that too.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.