http://d.puremagic.com/issues/show_bug.cgi?id=3850



--- Comment #5 from bearophile_h...@eml.cc 2012-10-22 09:52:06 PDT ---
(In reply to comment #4)

> That still won't prevent you from making the mistake of typing 'byte' instead
> of 'ubyte' though. :)

If you have sbyte and ubyte, and you keep using them consistently, I think this
alone helps reduce mistakes a little.

And once few years have passed, and using "byte" is considered a bad idiom, D
programs in the wild use "byte" less and less, we can even consider deprecating
it.

There are tons of C++ code that represents null as "0", yet in C++11 there is
nullptr, and G++ from version 4.7 has a warning
(-Wzero-as-null-pointer-constant) that allows to find usage of "0" to represent
null pointer.

The most important thing is the desire to improve the situation, then some slow
deprecation paths exist.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to