If !in is inconsistent because of bool/pointer, then so is !

bearophile bearophileHUGS at lycos.com
Fri Feb 6 15:54:29 PST 2009


Rainer Deyke:
> It's a question of consistent patterns versus special cases.

You may think that for humans it's better to have a very orthogonal language, like for example Scheme.
There's also a famous quote about this, "Programming languages should be designed not by piling feature on top of feature, but by removing the weaknesses and restrictions that make additional features appear necessary." But in practice the large part of programmers work with languages like Java, C, C++, C#, Python, modern basic variants, etc despite they have much more restrictions compared to Scheme.
This is a long thing to explain, and I don't have enough space in this tight post to explain it, but the short version is that removing "special cases" as allowing !+ makes the language worse, less easy to use, more bug-prone, and generally less good.

Bye,
bearophile



More information about the Digitalmars-d mailing list