digitalmars.D - Re: Restricting ++ and --
- Kagamin <spam here.lot> Oct 26 2009
- bearophile <bearophileHUGS lycos.com> Oct 26 2009
- d-noob <doesnt exist.com> Oct 26 2009
- Kagamin <spam here.lot> Oct 26 2009
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
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
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
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