Re: Need for Swift

2019-10-14 Thread Laurent Daudelin via Cocoa-dev
I’ve been wondering the same thing. I thought that maybe because I was biased toward Obj-C. But if it wasn’t for the editor, damn, I don’t know how many times I would have to go back to unwrap one of those optionals. Are people supposed to know instinctively when you unwrap with “?” and when

Re: Need for Swift

2019-10-14 Thread Pier Bover via Cocoa-dev
> > I, for one shuddered when I saw “if let x = y” being something that people > are expected to use and that damn, “you must unwrap this optional”, simply > ends up making things that were simple in Objective-C, completely > cumbersome in Swift. > Totally agree... I've only used Swift on one

Re: Need for Swift

2019-10-14 Thread Alex Zavatone via Cocoa-dev
> On Oct 14, 2019, at 1:25 PM, Carl Hoefs via Cocoa-dev > wrote: > > The group that likes Obj-C sees Swift as being "arbitrarily syntactical" with > the syntax of the language getting in the way of programming. (There is a > third group that likes both languages, but it is very small.) I

Re: Need for Swift

2019-10-14 Thread Charles Srstka via Cocoa-dev
> On Oct 14, 2019, at 7:21 PM, Jens Alfke wrote: > >> On Oct 14, 2019, at 5:02 PM, Charles Srstka > > wrote: >> >> Swift, on the other hand, can actually *be* a scripting language if you want >> it to; put #!/usr/bin/env swift at the top of a source file, give

Re: Need for Swift

2019-10-14 Thread Jens Alfke via Cocoa-dev
> On Oct 14, 2019, at 5:02 PM, Charles Srstka wrote: > > Swift, on the other hand, can actually *be* a scripting language if you want > it to; put #!/usr/bin/env swift at the top of a source file, give it execute > permissions, and voilà, it’ll run just like a script. *Anything* can be a

Re: Need for Swift

2019-10-14 Thread Charles Srstka via Cocoa-dev
> On Oct 14, 2019, at 2:30 PM, Jens Alfke wrote: > >> On Oct 14, 2019, at 11:25 AM, Carl Hoefs via Cocoa-dev >> mailto:cocoa-dev@lists.apple.com>> wrote: >> >> I see Computer Science students here falling into two groups. The group that >> likes Swift generally likes scripting languages,

Re: Need for Swift

2019-10-14 Thread Jens Alfke via Cocoa-dev
> On Oct 14, 2019, at 11:25 AM, Carl Hoefs via Cocoa-dev > wrote: > > I see Computer Science students here falling into two groups. The group that > likes Swift generally likes scripting languages, Python, and the like. Whoa, I completely disagree. Objective-C is much, much closer to

Re: Need for Swift

2019-10-14 Thread Carl Hoefs via Cocoa-dev
> On Oct 12, 2019, at 9:24 AM, Charles Srstka via Cocoa-dev > wrote: > >> On Oct 12, 2019, at 10:55 AM, Pier Bover via Cocoa-dev >> wrote: >> >> Yeah I think Apple saw Obj-C as a barrier for developer adoption. I don't >> think that's too far from the truth considering the emphasis on