Live data from Hacker News

The Swift Programming Language

developer.apple.com

181–190 of 970 posts

Re: The Swift Programming Language

#181
post #105

Does this means that they're ditching Objective-C?

No. Swift works along side Objective-C. You can use both in the same project.

That'a also Microsoft said about VB.NET when they introduced C# in early 2000. Now C# is a much more dominant language than VB.NET. It's a matter of adaptation . Something it take a long time. But seriously, how could Apple introduce a new programming language that would be possibly worse than objective-C to master? I don't think so if it's not light years better than OC. Perhaps better is a relative term, but from the syntax, new Swift definitely has a modern objective language feel, and should pose much less learning curve to newcomers. That's certainly a welcome sign.

Re: The Swift Programming Language

#182

Feels like they looked at a bunch of programming languages, took all their favorite features, and then put them into one which still sits on top of the ObjC runtime. And then added some Apple syntactic craziness. For example: var apples = 3; // mutable let oranges = 5; // immutable let summary = "I have \(apples) apples and \(oranges) oranges";

Do you need the semicolons?

Nope. "you don’t even need to type semi-colons." [1]

[1]: https://developer.apple.com/swift/

Re: The Swift Programming Language

#183
post #164

This will revolutionize programming education. Interestingly enough, the time manipulation in Swift was inspired by a game called Braid ( http://en.wikipedia.org/wiki/Braid_(video_game) ) released back in 2009. This will help young programmers solidify the connection between giving the computer logical commands and what is outputted on the screen immediately. Reminds me of how excited I was when Processing ( http://w…

Was it inspired by Braid or the work of Bret Victor at http://worrydream.com ?

Bret Victor admitted at some point to being inspired by playing Braid.

Re: The Swift Programming Language

#186
I'm reading the manual and liking nearly everything. But then I stumble across:

> Alternatively, remove a key-value pair from a dictionary with the removeValueForKey method.

Is that the day where an Objective-C got to choose method names? Why not dict.delete() or similar?

Re: The Swift Programming Language

#190

This will revolutionize programming education. Interestingly enough, the time manipulation in Swift was inspired by a game called Braid ( http://en.wikipedia.org/wiki/Braid_(video_game) ) released back in 2009. This will help young programmers solidify the connection between giving the computer logical commands and what is outputted on the screen immediately. Reminds me of how excited I was when Processing ( http://w…

> This will revolutionize programming education.

It could, if it were open and not limited to iOS/OSX.

Post reply on HN