4 ms·
Optional dots, semicolons and sometimes parenthesis, underscores as placeholders, and interchangeable parenthesis and braces are about the only syntactic sugar
by riobard 15y ago
Optional dots, semicolons and sometimes parenthesis, underscores as placeholders, and interchangeable parenthesis and braces are about the only syntactic sugar in Scala AFAIK. They are really minimal compared to, for example, Python decorator syntax.
- pdhborges 15y agofor loops are also syntactic sugar and the case class matching thing case class Lol (a: Int, b: Int) Lol(2, 3) match { case x Lol y => x }