3 ms·
That was my position before I discovered Scala - stronger type safety than Java, more concise/clear/expressive than Python.
by lmm 12y ago
That was my position before I discovered Scala - stronger type safety than Java, more concise/clear/expressive than Python.
- keypusher 12y agoI respect the design descisions that Scala made, but I don't find the syntax to be very clear or intuitive.
- lmm 12y agoA lot of Python corresponds 1:1, IME. The biggest difference I notice is the _ shortcut, which I wish Python would adopt - "_ + 1" is so much shorter than "lambda x: x + 1" and no less clear. (And you can always use the "{x => x + 1}" style if you want). Oh, and I guess the constructor syntax, which again I wish Python would adopt. I end up with too many "self.x = x" lines in my Python __init__ methods; pure syntactic ceremony.