Earlier quoted context omitted.
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.
I'm old enough to remember Apple suing Microsoft for "copying their look and feel". Open source is something Apple only does strategically - when they have to or it suits them - it is not part of the company's ethos. http://en.wikipedia.org/wiki/Apple_Computer,_Inc._v._Microso... .
The Swift Programming Language
261–270 of 970 posts
Re: The Swift Programming Language
#262Lol
Re: The Swift Programming Language
#263Feels 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";
You say "Apple syntactic craziness", but "var" is identical to JS, et. al. and "let" is identical to ML, et. al. The string interpolation syntax is unique, but kind of makes since given then \ is the escape character in C strings.
Re: The Swift Programming Language
#264Am I the only one who thinks the name "Swift" sounds a lot like "Dart"?
Re: The Swift Programming Language
#265It 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.
Re: The Swift Programming Language
#266So 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?
Re: The Swift Programming Language
#267Re: The Swift Programming Language
#268Can anybody find a link to the Swift guide that they mentioned in Keynote? All I see is Taylor Swift books.
Re: The Swift Programming Language
#269Feels 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";
A bit of python looking stuff and some ruby looking stuff in there too. I am intrigued enough to give it a try when it is available.
Re: The Swift Programming Language
#270Earlier quoted context omitted.
Swift doesn't seem to have anything to do with the parallel language at swift-lang.org. Whoops. Should've corrected that when I copied the comment over. In any case, reference counting is disastrous for the parallelism story. GC thread coming along and causing an additional cache miss is way better than having to do atomic operations on reference counts all the time. Why are atomic reference counts necessary? You wou…
Swift is based on the ObjC runtime, which means you have a shared heal and the possibility of multiple threads adjusting counts at the same time.