Comment by valenterry
2 days ago
> Flix does not yet have macros-- and we are afraid to add them due to their real (or perceived) (ab)use in other programming languages.
I think the abuse is not that much of a problem. It's rather that it makes it much much harder to change the language later on because it will break macros (like it did between Scala 2 and 3, causing many people to be stuck on Scala 2 due to libraries using macros heavily).
If I might add a suggestion: add type providers to the language (like in F#). It solves a lot of the problems that macros are often used for, such as generating code from SQL DDLs, API specs, etc. (or vice versa).
No comments yet
Contribute on Hacker News ↗