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

downs default_357-line at yahoo.de
Sat Feb 7 09:07:42 PST 2009


Bill Baxter wrote:
> On Sat, Feb 7, 2009 at 8:54 AM, bearophile <bearophileHUGS at lycos.com> wrote:
>> 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.
> 
> Note that D already has things like !>.

Well yeah, but note that it can be pronounced "not bigger", as opposed to !+.



More information about the Digitalmars-d mailing list