News for hackers. Stuff that matters.
Re:PHP Must Die by derefr on Saturday January 09, 2010 @07:21PM (#1042284)
I think there's a more relevant issue here: can we please stop designing languages that use prefix-zero to signify octal? It's a horrible trap lying in wait for those just learning their first language, and then you have to keep it in mind whenever you learn another one, to see whether it's "supported" in this new one as well.

Perhaps, instead, we can come up with some unified representation of a way to attach a base to a number, such as, say, [base]b[number], e.g. 2b0110001 or 16bFF, and use it in every language? (I'd say something about subscripts and their natural use née mathematics, but I'll hold that comment until the iTablet's soft keyboard layout makes people start rethinking APL-like languages.)

Re:PHP Must Die by thristian on Saturday January 09, 2010 @08:05PM (#1042374)
Python 3 has, I believe, done away with the 0 prefix for octal and uses a consistent prefix system for different-base literals: "0x" for hex, "0o" for octal, "0b" for binary.
Re:PHP Must Die by kroger on Saturday January 09, 2010 @08:03PM (#1042367)
In common lisp 08 is the number 8.

clisp -q -x "(print 08)" 8

An octal number has the prefix #o, as in #o3