[swift-evolution] [Pitch] Reimagining guard case/if case

Rien Rien at Balancingrock.nl
Tue Oct 25 07:28:54 CDT 2016



> On 25 Oct 2016, at 14:15, Haravikk <swift-evolution at haravikk.me> wrote:
> 
> Lastly, on it being more readable the issue isn't general readability but rather discoverability. If you see "if x matches .some(let y)" or "if x is let y?" then there's some immediate context for what's going on the first time you see it. An =~ or ~= operator is less clear as it looks like a weird assignment operator (like +=), doesn't mean the same thing as the tilde operator on its own; the only clue to it being a comparison is that it's used in an if condition.


Bingo!, you just formulated what I felt but could not put in words just yet.

Regards,
Rien

Site: http://balancingrock.nl
Blog: http://swiftrien.blogspot.com
Github: http://github.com/Swiftrien
Project: http://swiftfire.nl




More information about the swift-evolution mailing list