shouting versus dotting

Janderson ask at me.com
Mon Oct 6 08:27:50 PDT 2008


Personally I don't think that we should just change the symbol ! to . 
because it will break a load of libraries for purely an ascetic change. 
  Its difficult to argue that . is better then ! as it depends on the 
person reading the code.  However if a template change allows for more 
functionality then it might be worth considering.

Anyway extending a previous suggestion.  What about using ;?

Foo(int T, alias X; T val, X val2);


One clash I can think of is that it might get mixup with a for loop, 
however I imagine that's easily detectable.  Also its slightly harder to 
make a distinction between the template args and the value however on 
the positive side its less typing.

-Joel



More information about the Digitalmars-d mailing list