News for hackers. Stuff that matters.
Re:Introducing Swift by m_mueller on Wednesday June 04, 2014 @03:57AM (#7844477)
Thanks for the clarification on how to use it in Swift - like this it's indeed the perfect solution by enforcing it to be explicit. Having multiple cases rolled into one is also a very nice option. The snark wasn't really called for though. No, I don't 'use' it by accident, that would in most cases just become a bug. I use it when it makes code more concise rather than having nested ifs. Consider for example ACL rules where you set different privileges by default according to an access level.

There are no comments on this comment yet.