imports and a data structure (any critique welcome)

Timon Gehr timon.gehr at gmx.ch
Fri Dec 27 08:00:04 PST 2013


On 12/27/2013 02:45 PM, bearophile wrote:
> Timon Gehr:
>
>> mixin ADT!q{ Term: Var char | Op char Term[] };
>>
>> void main(){
>>     const expr = Op('f', [Op('g',[Var('x'), Var('y')]), Op('a',[]),
>> Var('x')]);
>> }
>
> Where is ADT defined?

https://d.puremagic.com/issues/show_bug.cgi?id=10431

> (And why isn't it a Phobos patch on GitHub?)
> ...

https://d.puremagic.com/issues/show_bug.cgi?id=11558

> That's too much compact :-)  Humans put a space around
> operators,

Feel free to reformat, but implying that you are somehow ethically 
superior and that I am not human seems to go a little far. :o)

> and sometimes some parentheses don't hurt:

They hurt there because they add noise and don't help.


More information about the Digitalmars-d-learn mailing list