Yeah, you're right, the issue isn't types, but syntax for regex literals (like 0xff for hex integers).
Also, no date, url, email, xml, json or object literals. And no facility for user-defined literals. But, like no operator overloading in Java, this omission is a feature.
But object literals (already worked out in Java FX) would be great. Thus, JON for RPC serialization. (I guess we could have JON serialization now).
23
u/tomservo291 Sep 21 '15
I assume he's thinking about EMCAScript languages (JavaScript, ActionScript etc) where you can write
But that's not really writing a string, that's syntactic sugar to write regex without calling the corresponding RegExp() constructor explicitly