Hacker News new | ask | show | jobs
by abtinf 2929 days ago
I think it might be more intuitive as an explicit stream modifier: hex, decimal, etc. No reason to turn anything “off”, which is actually the activation of a diffferent mode.

Edit: What I mean is

  hex
  00
  dec
  00
  utf8
  00
1 comments

Definitely, that's probably the best way, considering all the other commands are "stream-y" as-is.
Why have hex mode toggles at all? Just use 0xa1b2, and so on. 0x... -> hex, 0... -> octal -- invent a syntax for binary.
0 for octal was a huge mistake. Most sane languages use 0o now, or just forget octal. How often do you use octal anyway? Like, once a year for file permissions?
OK, sure. As long as we don't have to toggle number bases...
syntax for binary: 0b11010011