DIP 50 - AST macros

Walter Bright newshound2 at digitalmars.com
Sun Nov 17 00:58:23 PST 2013


On 11/14/2013 11:38 PM, Jacob Carlborg wrote:
> On 2013-11-14 21:54, Walter Bright wrote:
>
>> If it is powerful enough to do async/await but look like normal D
>> syntax, then is going to suffer from these faults.
>
> I don't think so. The idea is to have it look consistent within the language.
> Take a look at __traits. It looks just like a function call, but it's far from
> being a function call. Classes and structs look very similar, only the keyword
> is different, but they are very different.
>

Think about the desired feature mentioned earlier in this thread of being able 
to insert a "return;" statement, causing what looks like a function call to 
return from the caller.

That's a major step increase in obfuscation, not just a detail.


More information about the Digitalmars-d mailing list