[OT] Generative C++

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 28 14:36:18 PDT 2017


On Friday, 28 July 2017 at 07:49:02 UTC, Yuxuan Shui wrote:
> Someone made an interesting proposal to C++: 
> https://herbsutter.files.wordpress.com/2017/07/p0707r1.pdf
>
> Thoughts?

Looks like a hybrid between imperative and declarative macros. 
It's natural for C++ to add lots of syntax, but declarative 
additions don't look very valuable, because imperative macros are 
already turing-complete and can do any job. With this C++ will 
have 3 macro systems: imperative, declarative and preprocessor.
ps CTFE and AST DOM API naturally make minimalistic and versatile 
AST macros.


More information about the Digitalmars-d mailing list