Syntax changing

Mehrdad wfunction at hotmail.com
Sun Jun 5 15:13:38 PDT 2011


>>> "Monkol" <dj_mon at mail.ru> wrote in message
>>> news:op.vwgs7ypjcqe400 at pc-2010.dnepr.net.ua...
>>>
>>> >i think it is necessary to change template syntax and do as C++ style
>>> >template A <>, and not A !(), A <>. many people come from C++ and 
>>> it will
>>> >be easy to adapt.
>>>
>>> I came from C++, and I found it easy to adapt. Plus, like it says in 
>>> the
>>> link Steve gave, there are technical downsides to using <>.

It's not just a "looks" issue. Doing that would no longer allow the 
language to be context-free, because of ambiguities with 
greater-than/less-than operators.
http://stackoverflow.com/questions/52506/c-template-ambiguity


More information about the Digitalmars-d mailing list