News for hackers. Stuff that matters.
Re:Dart Macros and Focus by rob74 on Monday February 03, 2025 @07:18AM (#42917429)
> An often overlooked positive effect of macros is that the entire community can experiment with new language features.

Sure, that sounds positive - but with enough macros, you can turn "your" version of the language into something completely unrecognizable to people that are only familiar with the "basic" version (or, otherwise said: congratulations, you've got yourself a DSL!), and I would say that's a rather negative effect...

Re:Dart Macros and Focus by shakna on Monday February 03, 2025 @08:09AM (#42917842)
TeXInfo is a plain-TeX system that rewrites the parser to a completely new syntax, whilst maintaining compatibility with importing and linking to other libraries. It is extensively used, especially in emacs.

Having a DSL, isn't necessarily a bad thing.

Re:Dart Macros and Focus by soegaard on Monday February 03, 2025 @08:27AM (#42917986)
This is no different from having competing libraries for dates, regular expressions, html parsing etc.
Re:Dart Macros and Focus by rob74 on Monday February 03, 2025 @09:04AM (#42918314)
That's the reason why many prefer "batteries-included" languages that provide a standard implementation for all the basic stuff...