4 ms·
After we remove support for vertical tab can we drop octal literals from every language? As fun as it is to snicker at a young programmer who spent 2 hours debu
by zimbu668 11y ago
After we remove support for vertical tab can we drop octal literals from every language? As fun as it is to snicker at a young programmer who spent 2 hours debugging
x = 0123
it's time for octal to go away.
- desdiv 11y agoHear, hear. Scala recently removed it altogether: https://issues.scala-lang.org/browse/SI-5205 https://issues.scala-lang.org/browse/SI-5205 Other languages (Python 3, Ruby) are moving to the 0o syntax.
- pekk 11y agoPython has had octal literals like this for years, so it is misleading to say that it is "moving to" it.
- KeytarHero 11y agoSame with trigraphs - as much fun as it is to joke about the ??!??! operator[0] [0] http://stackoverflow.com/questions/7825055/what-does-the-c-operator-do http://stackoverflow.com/questions/7825055/what-does-the-c-o...
- GFK_of_xmaspast 11y agoI think trigraphs are supposed to be going away in c++17.
- KeytarHero 11y agoThey are, but as far as I know C has no plans to remove them.