Bartosz about Chapel
Marco Leise
Marco.Leise at gmx.de
Fri Nov 11 05:30:49 PST 2011
Am 11.11.2011, 03:23 Uhr, schrieb Walter Bright
<newshound2 at digitalmars.com>:
> There's been a lot of agonizing over names in D lately. They are a
> soul-sucking quagmire of wasting time.
I hope you see the difference between 'byte' which is confusing, but 100%
consistent with (u)byte, (u)short, (u)int and (u)long, and other
discussions about 'inout' which originated from in and out and will
forever be confused with them. There is also some library functions, like
clear() which looks like the well known action to remove all elements from
a container when used with universal function call on
(associative-)arrays, but has a different purpose.
This is all second-guessing now, but when these things add up, some people
sensitive to unambiguous naming will put the all on the table. Especially
since D attracts people from different programming languages, method names
and keywords may already have two meanings to different people. Others
names, like clear() are sort of standard and don't work the way of
least-surprise in D. Things like this must be avoided in the future to
keep D comprehensible:
http://www.digitalmars.com/d/archives/digitalmars/D/learn/Remove_all_elements_in_an_associative_array_27791.html
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=135001
http://d.puremagic.com/issues/show_bug.cgi?id=5683
http://www.digitalmars.com/d/archives/digitalmars/D/learn/Clear_big_AAs_27256.html
http://d.puremagic.com/issues/show_bug.cgi?id=5816
More information about the Digitalmars-d
mailing list