Published: Nov 23 2009 / 21:22
Underscores in numeric literals: already available in Ruby
Binary literals: as is from Ruby
But the octal notation is still in there.
They were in Ada way before Ruby was dreamed!
Comparing languages is a fail game.
The base notation (2.4.2. Based Literals )is what Java should have implemented. At last , at long last, the programmer could write:
int tval1 = 000000451;
int tval2 = 003311112;
int tval3 = 900000001; // all aligned!
int oct_special = 8#011#;
Absolute nonsense codeing shorthands.
Hmm, so which is the latest dynamic language that dont have closures ?
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.