What are all the instances of syntactic sugar in Scala?
问题 What are all the instances of syntactic sugar in Scala? They are hard to search for since most/all of them are purely symbols and are thus hard to search for without knowing the name of the concept. TODO: Implicit conversions _ syntax for anonymous functions Other things I\'m forgetting 回答1: Basics: a b is equivalent to a.b . a b c is equivalent to a.b(c) , except when b ends in : . In that case, a b c is equivalent to c.b(a) . a(b) is equivalent to a.apply(b) This is why the following