Things that may be removed

KennyTM~ kennytm at
Mon Dec 22 05:33:27 PST 2008

Don wrote:
> bearophile wrote:
>> There are some things I'd like to see added to the D language, but 
>> what things can be removed from it?
>> "Perfection is attained, not when no more can be added, but when no 
>> more can be removed."
>> -- Antoine de Saint-Exupéry.
>> :-)
>> "There should be one-- and preferably only one --*obvious* way to do it."
>> -- Python Zen, emphasis added by me :-)
>> Bye,
>> bearophile
> That is an excellent question.
> Some items in my list are controversial, the first two have already been 
> mentioned.
> * C-style declarations
> * \n, \r as a string (free up the backslash character)
> * #line (make it a pragma instead)
> * Octal (it's not 1952 any more)
> * the comma operator (allow in selected places, eg for(; ;++a, ++b)).
> * package. In DMD, it's a broken implementation of a broken concept.
> * The postincrement and postdecrement operators (make x++, x-- identical 
> to ++x, --x, except that it is illegal to use the return value. Allowing 
> operator overloading of the postfix operators was a silly hack in C++. 
> It's a freedom nobody wants).
> * is() expressions (I love what you can do with it, but it's 
> unintuitive, and traits is a much better solution)
> * .sort for AAs.
> * Object.toString(). Encourages bad design. It's not powerful enough to 
> be useful.

Just a comment:

Octal could be useful in chmod-ing, although saying 0321 != 321 is still 
confusing. I'd suggest keeping octal but change the way of declaring it 
(e.g. python's 0o321 or even toBase!(8, "321").)

More information about the Digitalmars-d mailing list