foo!(bar) ==> foo{bar}

Kirk McDonald kirklin.mcdonald at gmail.com
Tue Oct 7 14:41:12 PDT 2008


Walter Bright wrote:
> The foo.(bar) syntax seems to be sinking. The foo{bar} seems to be the 
> most practical alternative. So, how about putting it in the next D2 
> release on a trial basis, so people can try it out and see how it looks?

I do not feel it is necessary to change it at all. We are purchasing a 
perceived aesthetic improvement with a jarring change, which will either 
lead to a deprecated syntax we can never get rid of; or an immensely 
inconvenient, breaking syntax change. It will be an iconic example of 
D's status as a moving target, which is a bad thing.

I have written lots of template code in D. I liked the !( syntax 
immediately, knowing the weaknesses of using <> in C++. I have never had 
the impression that my code was shouting at me. I regard this entire 
discussion as a glorious, textbook example of Parkinson's Law of 
Triviality in action:

http://en.wikipedia.org/wiki/Parkinson%27s_Law_of_Triviality

It is my vote that we do nothing. I will be immensely disappointed if 
this silliness leads to an actual change.

-- 
Kirk McDonald



More information about the Digitalmars-d mailing list