Skip to content
  • ljackman's avatar
    Lighten syntax with 2 tweaks: lambdas and switches · 7ac5baf5
    ljackman authored
    Instead of mandating braces, disambiguate lambda parameters from lambda
    bodies by forcing parentheses around lambda parameter lists. As the vast
    majority of lambdas have 0 or 1 parameters, this reduces syntactical
    heaviness substantially, since braces then become optional again.
    
    For switches, let colons be used instead of braces for single expression
    cases.
    7ac5baf5