Pre-SIP: A Syntax for Collection Literals

Yes, and yes. It’s common to get (basic, simple) type errors fluctuating between Seq/List/IndexedSeq etc. when doing some problem solving for example. Although I admit this is more about method return types (Array also keeps sneaking in there).

I believe those languages all “copied the wrong answer” from each other due to cultural / sociological reasons (like how Java copied curly braces and semicolons to attract / ease C/C++ users), but Scala actually got it right instead. Also, hasn’t Scala been different from the very beginning? There’s nothing quite like it :wink: Isn’t that a good thing? We should have more confidence in ourselves…

10 Likes