www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Restricting ++ and --

reply Kagamin <spam here.lot> writes:
bearophile Wrote:

 Python designers have totally avoided to put those operators in the language,
with the rationale they are bug-prone while saving just a little of typing.

In D you don't actually have to use them: you have ranges, foreaches etc.
Oct 26 2009
parent reply bearophile <bearophileHUGS lycos.com> writes:
Kagamin:
 In D you don't actually have to use them: you have ranges, foreaches etc.

Very good, then restricting them will cause no problems. Bye, bearophile
Oct 26 2009
next sibling parent d-noob <doesnt exist.com> writes:
bearophile Wrote:

 Kagamin:
 In D you don't actually have to use them: you have ranges, foreaches etc.

Very good, then restricting them will cause no problems.

He probably meant that the idea was to leave those parts of the language untouched that don't really matter to you. You can write pythonese d just like before and the rest of use can write in good old C/C++ fashion.
Oct 26 2009
prev sibling parent Kagamin <spam here.lot> writes:
bearophile Wrote:

 Kagamin:
 In D you don't actually have to use them: you have ranges, foreaches etc.

Very good, then restricting them will cause no problems.

Why do you use feature if you feel uncomfortable with it? If I'm not familiar with template voodoo, should I write TMP library and debug it?
Oct 26 2009