> On 4 Oct 2015, at 11:10 pm, Roland King <r...@rols.org> wrote: > >> A) Ah, so it's Swift continuing to suck. > > No, not at all, Swift is being consistently consistent. The variable is a > ‘!!’ which means it’s implicitly unwrapped optional of an implicitly > unwrapped optional of an array, so when you use it it gets unwrapped for you, > once, thus leaving an implicitly unwrapped optional and optionals don’t have > generators, you have to re-unwrap it again.
As someone who hasn’t dipped his toe into Swift yet, this sort of thing is a major disincentive. The explanation as to why Swift doesn’t suck doesn’t fit any notion in compuer science that I have ever heard of in almost 40 years of programming. Maybe it’s just the jargon that needs a clearer explantion (I suspect it is), but when things are as clear as mud as this, you are not going to see the adoption rates you want. —Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com