I just realized that the reason 0x hex literals are so verbose is that C incorrectly bet on octal. 40 years later we’re still paying the price :(
-
-
I dunno - 0x123 makes it obvious it's hex. Plus, allows for `0xa`
-
(which would then probably have to be `0Ah`?) it's also more obviously generalizable, i.e., `0b1010`, which I think is super useful
- 6 more replies
New conversation -
-
-
I’m reminded of the &H prefix used by QBasic and friends, e.g. &H40
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
That would cause problems for Rust-style type suffixes. I think a two-char prefix for all non-decimals is reasonable.
-
If I remember correctly, GW-BASIC used &h -- &hf00f
End of conversation
New conversation -
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.