DIP78 - macros without syntax extensions

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Wed May 27 01:14:35 PDT 2015


On Tuesday, 26 May 2015 at 23:47:41 UTC, Dennis Ritchie wrote:
> 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 :)

The problem with declarative macro system is that you would need 
to learn yet another language. Possibly turing-complete. And a 
declarative turing-complete language is an overkill both for 
usage and implementation. Imperative macros get it done in an 
intuitive way in the existing language.


More information about the Digitalmars-d mailing list