Live data from Hacker News

The Swift Programming Language

developer.apple.com

191–200 of 970 posts

Re: The Swift Programming Language

#191

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?

no

Re: The Swift Programming Language

#192

So it looks like the language isn't open source and won't target non-Apple runtimes? I'm not trying to troll, I just think that it's a pity that Apple tends to limit the ecosystem and applications of its otherwise-great languages. Building against LLVM ought to make it fairly trivial to make this cross-platform.

Now that Microsoft has been open sourcing so much stuff I was expecting Apple to follow the wave and release Swift as open source too. It's a shame though.

Re: The Swift Programming Language

#194

So it looks like the language isn't open source and won't target non-Apple runtimes? I'm not trying to troll, I just think that it's a pity that Apple tends to limit the ecosystem and applications of its otherwise-great languages. Building against LLVM ought to make it fairly trivial to make this cross-platform.

This is only a bit of a bummer because I already expected as much.

Re: The Swift Programming Language

#195
As someone who's biggest hurdle was the syntax of Objective-C, this is absolutely massive personally. Just the other day, me and my friend was discussing how hard Objective-C is to properly learn. Of course, the jury is still out on Swift until I read further on it, but it can't possibly be worse then Objective-C.

Looking forward to it.

Re: The Swift Programming Language

#196
post #133

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 also be incredible for ease-of-setup. Install Xcode, and you're ready to go. No other dependencies. Setting up a dev environment can be one of the big reasons people fail to learn to program.

>This will also be incredible for ease-of-setup. Install Xcode, and you're ready to go. No other dependencies.

1. Buy particularly expensive computer 2. Register as an apple developer 3. Install Xcode, and you're ready to go.

> Setting up a dev environment can be one of the big reasons people fail to learn to program.

Citation needed :)

Re: The Swift Programming Language

#197
post #93

It seems like the only way to view the programming language documentation is on iBooks on an iOS device? For a programming book, this is ridiculous. Edit: The latest version of OS X does support iBooks. Lets hope you have that.

Yeah, and iBooks on iOS requires iOS 7. If someone figures out how to get a usable standard ebook file out of this please let me know.

Re: The Swift Programming Language

#198
post #52

"...we wondered what we could do without the baggage of C." Is that tongue in cheek? It's not even a particularly large, encumbered language, C.

Is that tongue in cheek? It's not even a particularly large, encumbered language, C.

This would make a lot more sense if you knew about the history behind Objective-C.

http://en.wikipedia.org/wiki/Smalltalk

Re: The Swift Programming Language

#200

So it looks like the language isn't open source and won't target non-Apple runtimes? I'm not trying to troll, I just think that it's a pity that Apple tends to limit the ecosystem and applications of its otherwise-great languages. Building against LLVM ought to make it fairly trivial to make this cross-platform.

Is there anything to stop a independent implementation? Like C#/.Net and Mono?
Post reply on HN