DIP78 - macros without syntax extensions

Dennis Ritchie via Digitalmars-d digitalmars-d at puremagic.com
Tue May 26 16:47:40 PDT 2015


On Tuesday, 26 May 2015 at 20:23:11 UTC, Kagamin wrote:
> http://wiki.dlang.org/DIP78 - Proposal for a macro system 
> without syntactical extensions to the language. Hence it 
> doesn't allow arbitrary syntax.

If this proposal is considered, it is required to propose to look
at the implementation of macros in Nemerle. Many believe that it
is in Nemerle macros implemented the most successful compared to
other modern languages. Of course, the most successful macros are
implemented in Lisp, but the syntax of the language is poor :)

Some information here:
http://www.nemerle.org/About

Great article about macros Nemerle, but in Russian:
http://rsdn.ru/article/nemerle/NemerleStingFormating.xml

Of course, it is necessary to look at Rust and Nim, but macros
Nemerle implemented better.
I also think that the D needed macros, but I sure would not want
to see the lite version of the macros. If implemented, then at
least to the end and complete! Or not to implement macros in
general...
Although if you create something in between lite and full version
of the macro, then I think it would be a big plus for D, so
entirely without macros somehow uncomfortable. Some mixins little.
Sometimes I think that D do not need these macros, and sometimes
it seems to me that they are severely lacking.Although the
competition is also necessary to consider the other languages
that have at least some macros, such as, Nim/Rust.
In general, D needs some macros.


More information about the Digitalmars-d mailing list