I don't know if this is "dumb", but it really does break the principle of least surprise.
for many people, especially those working in embedded systems, a "byte" is an 8-bit quantity ranging from 0 to 255. if you look at the specifications for various file formats and network protocols, you'll *very* rarely see signed bytes being used. (and yes, the Java language was designed for embedded systems). in practice, this is not so much of a problem if you don't forget that you are coding in Java. more an annoyance than anything else, and it's pretty easy to get used to it. at least, it's better than C's convention for "char": it may or may not be signed, depending on your compiler and various options... now, *that* is dumb... 2008/4/28 Romain Guy <[EMAIL PROTECTED]>: > > How is that dumb? It's just a choice and most of the time it's perfectly > fine. > > On Sun, Apr 27, 2008 at 3:08 PM, David Given <[EMAIL PROTECTED]> wrote: > > Romain Guy wrote: > >>> All Java types are unsigned (except char). Yes, that's dumb. > >> > >> No, all Java types are *signed* except char. > > > > D'oh! Indeed so. I seem to have missed a ! from the beginning of that > > statement. > > > > It's still dumb, though. > > > > -- > > ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── > > │ "I have always wished for my computer to be as easy to use as my > > │ telephone; my wish has come true because I can no longer figure out > > │ how to use my telephone." --- Bjarne Stroustrup > > > > > > > > -- > Romain Guy > www.curious-creature.org > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

