[swift-evolution] Remove default case in switch-case
casey at kckd.org
Wed Dec 9 20:51:35 CST 2015
FWIW, I think "default" is nicely expressive, and the _ construct always weirds me out just a little bit because while I understand it, it's not even a little bit intuitive to someone first learning a language.
As an aside, I'd think that this list, and the discussion and transparency that it provides is awesome. Insanely great, even.
On Dec 9, 2015, at 6:37 PM, Matthew Johnson via swift-evolution <swift-evolution at swift.org> wrote:
>> 1) We have had default and “case _” ever since Swift has been public. If you look at bodies of existing swift code, they almost unanimously use “default” instead of “case _”. This argues that default is more familiar and more widely used. It isn’t some legacy barnacle on the side that people generally ignore.
> I don’t have a strong feeling on this one way or the other, but I think it’s probably safe to say that the reason default is more familiar and widely used is because pretty much all the documentation I have seen does it that way, not because people like it better or because it is necessarily easy to understand. If the documentation was written using "case _" I think we would see that be the familiar and widely used variation.
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution