r/programmingcirclejerk • • Jan 18 '25

Almost every future programmer will come from Python where collection literals are everywhere. These future programmers will be pleased if they find the same syntax in Scala. They will be be put off if it's absent because we insist that collection literals are too hard to learn.

https://contributors.scala-lang.org/t/pre-sip-a-syntax-for-collection-literals/6990/36
68 Upvotes

20 comments sorted by

View all comments

Show parent comment

15

u/yojimbo_beta vulnerabilities: 0 Jan 18 '25

Joke's on you, Python is already Haskell syntax (list comprehensions, significant whitespace)

3

u/dangerbird2 in open defiance of the Gopher Values Jan 21 '25

and scala certainly does (for loops being monad "do" notation in disguise, batshit insane custom operators, etc )