Exceptional coding style

Andrey andr-sar at yandex.ru
Mon Jan 14 16:55:11 PST 2013


Well, personally I love this simple and accurate C-style look. 
I'm not a fan of syntax sugar and operator overloading and I 
would prefer:

arr.insertKey("myword", value); instead of arr["myword"] = value;

Here I emphasize that I'm inserting new key and not modifying the 
value of already present.

At the same time you have to use OOP style call 
arr.remove("word").

And I'm very happy to have nested structs, class and functions in 
D. :-)


More information about the Digitalmars-d mailing list