The aesthetic of C (modern era, ignore 6-char external name FORTRAN-era linker limitations in old days) prefers full word (unsigned, volatile) where no nice-sounding prefix shorthand (int, const) exists. Cf. Go’s func & JS’s function (after AWK, d’oh!).
-
-
-
So uns would not do and unsign does not stand alone w/o int after, is awkward as adjectived verb if followed by int, adding -ed at end adds 2 chars on 6 (in for a penny) so worthwhile on aesthetic grounds.
- 3 more replies
New conversation -
-
-
signedn't size = 0;
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It’s also weird that “unsigned int” is an unqualified type. Why can’t other types have spaces in their names? :P
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
What are these types you speak of? Don't burst my uint64_t bubble. In the olden days, the int part was optional, so you could write "unsigned foo". (I learned this from a typo and an error message)
-
still is
- 2 more replies
New conversation -
-
-
Java: "int", "char", "float"... "boolean" O_o. There's an argument that the former were inherited from C and the latter was the "correct" choice, but really it's just a heinously long keyword for a super-common type.
-
It’s also funny how the history went: George Boole → Boolean logic → Boolean → bool → boolean Clearly the correct de-abbreviation would’ve been “boole”.
End of conversation
New conversation -
-
-
What I find weird is that the so code-stabilizing keyword "final" in Java exists instead of its counterpart "var". public String a should be immutable, "var public String a" should be mutable. More people would "use final" this way.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
unsigned wasn't part of the original design; people used pointers in the rare cases where they did not want signed integers. signed came even later when IBM fucked up their C compiler by making char an unsigned type to support EBCDIC. I'm not sure who exactly introduced it.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.