someone made wonderful suggestion that was rejected :(http://www.python.org/dev/peps/pep-0313/
This entry was posted on Tuesday, December 8th, 2009 at 5:24 pm and is filed under blodgett, clicky. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
Pfft. Python should learn from proper languages which support this useful feature. Common Lisp, for example.
http://www.lispworks.com/documentation/HyperSpec/Body/22_cba.htm
In fact, CL supports /two/ different types of Roman numerals – i.e. can write 9 as IV or IIII:
[5]> (format t “~@r” 2009) MMIX NIL [6]> (format t “~:@r” 2009) MMVIIII NIL
Lolz – posted that before I read the rest of the linked article which mentions LISP-envy :p
i wonder why people don’t extend the 0x like syntax more. it seems perfectly natural to have 0xA, 0rX, and 0b1010 all be 10.
IIRC Ada lets you use any base between 2-32 e.g. 10#10#, 2#1010#, 16#A#, 11#A#, etc.
whut
Took a long time to reply to that! Ada has some very useful features…
was looking for something useful but found this instead
Pfft. Python should learn from proper languages which support this useful feature. Common Lisp, for example.
http://www.lispworks.com/documentation/HyperSpec/Body/22_cba.htm
In fact, CL supports /two/ different types of Roman numerals – i.e. can write 9 as IV or IIII:
[5]> (format t “~@r” 2009)
MMIX
NIL
[6]> (format t “~:@r” 2009)
MMVIIII
NIL
Lolz – posted that before I read the rest of the linked article which mentions LISP-envy :p
i wonder why people don’t extend the 0x like syntax more. it seems perfectly natural to have 0xA, 0rX, and 0b1010 all be 10.
IIRC Ada lets you use any base between 2-32 e.g. 10#10#, 2#1010#, 16#A#, 11#A#, etc.
whut
Took a long time to reply to that! Ada has some very useful features…
was looking for something useful but found this instead