Happy New Year, Swift Evolution! This is a new pitch for a rule that would allow multi-statement if and switch expressions, as well as introduce do expressions. It does this via a new rule that the last expression in a function or branch is the return value, without a keyword (either return for functions/closures, or the previously pitched then for if or switch). It follows from feedback from the original pitch for a then keyword. The PR can be found here. Please direct typos and other minor f...
I have long thought that Swift has Syntactic Diabetes from all the sugar we’re sprinkling around.
This just seems like more.
Lack of explicit intent degrades understanding and, usually, performance. Why are we encouraging more?