[Issue 3850] Signed/unsigned bytes type name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 22 09:52:07 PDT 2012


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



--- Comment #5 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list