(I can't find any references to it)
The Swift Programming Language
241–250 of 970 posts
Re: The Swift Programming Language
#242So 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.
Re: The Swift Programming Language
#243Feels 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
#244Re: The Swift Programming Language
#245Feels 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";
Re: The Swift Programming Language
#246“if let actualNumber = possibleNumber.toInt() {
println("\(possibleNumber) value: \ (actualNumber)")
} else { println("\(possibleNumber) could not be converted to an integer")
}”Nice to see the Apple's language developers embracing functional programming by providing a clean implementation of the Maybe Monad as well as support for closures.
Re: The Swift Programming Language
#247Looks like they pulled a Golang: http://swift-lang.org
Re: The Swift Programming Language
#248Anyone feel like converting the epub from iBooks to a PDF/HTML page we can read more easily?
Re: The Swift Programming Language
#249Earlier 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... .
Re: The Swift Programming Language
#250Apple knew there was Swift-Lang, and still called this Swift. At least they link to it from their website!