Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

leading zero octals

Name: Anonymous 2014-10-17 17:37

So what dumbass though 0123 != 123 was a good idea?

Name: Anonymous 2014-10-17 17:52

What notation do you propose for octal?

0o123 looked too similar to 00123, especially on old systems that didn't even have lowercase letters.

Name: Anonymous 2014-10-17 18:05

>>2
0ctal123

Name: Anonymous 2014-10-17 18:17

>>2
Ada got it right.

Name: Anonymous 2014-10-17 18:52

>>2

8x123

2x1010101

Name: Anonymous 2014-10-17 19:20

>>1
probably ur mom

Name: Anonymous 2014-10-17 19:36

>>2
two leading zeros would have been a lot better though anyway

Name: Anonymous 2014-10-17 19:55

0x, 0b, 0
WTF?!-kun
i never evenusejava

Name: Anonymous 2014-10-17 19:58

>>8
I MENA OCTELL

Name: Anonymous 2014-10-17 22:04

>>2 0o123 is easier to identify as octal than 0123, this is indisputable.
Personally I think octal is fucking retarded and shouldn't exist at the language level except MAYBE to support Unix file permissions, maybe. For the one in a million chance that you need octal, something like "octal 123" would be a hell of a lot more readable.

Name: Anonymous 2014-10-17 22:06

>>1
I thought it was a good idea...

Name: Anonymous 2014-10-18 8:19

>>10

You should study the history of C and Unix. Early Unix ran on PDPs, which had multiple of three word sizes and university professors stressed octs notation a lot. Today it is just a layer of history, like the C itself.

Name: Anonymous 2014-10-18 11:06

>>12
Yeah, and the x86 instruction encoding is based on octal as well. Doesn't mean it isn't practically useless today. I don't see why any language should have reader level support for octal; like I said, offer an ``(octal 123)'' macro for the very few cases where you need an octal literal.

Name: !MhMRSATORI 2014-10-18 11:18

>>1
I think it's a dope idea, and i'm a PUISSANT PROGRAMATORE.

Name: Anonymous 2014-10-18 11:32

>>13
The thing worrying me is that the crap gets carried to JavaScript and all other languages, like some nigger cargo-cult.

Name: Anonymous 2014-10-28 15:03

turns out somnambulance is an actual word

Don't change these.
Name: Email:
Entire Thread Thread List