The Swift Programming Language
381–390 of 970 posts
Re: The Swift Programming Language
#382I'm not even an iOS developer but this is by far the most exciting thing I heard in the keynote. As an amatuer/hobbyist programmer who's self-taught with Ruby, JavaScript, etc., the one thing that was keeping me from experimenting with iOS apps was Objective-C. I know I could tackle it, but it's been hard to take the plunge. I don't know much about Swift yet, but from what I've seen it looks very exciting. So if Appl…
I don't get the hate. Yeah, syntax is unfamiliar, bu once I got used to it I began to really enjoy objective-c. Ymmv etc., but it's now one of my fav languages - though I guess this is mostly due to cocoa
Re: The Swift Programming Language
#383God, I love Apple. Now I just wish real innovative languages could market themselves as efficient.
Re: The Swift Programming Language
#384> Looking for the Swift parallel scripting language? Please visit http://swift-lang.org Apple knew there was Swift-Lang, and still called this Swift. At least they link to it from their website!
Their icon even looks the same. It's also almost identical to the icon used by http://swift.im Sigh.
Re: The Swift Programming Language
#385What i don't really see in the docs is how to calls to objective-c methods are sorted out. For instance, if I have an objective-c class with a method -(void)addNumber:(NSNumber*)num withString:(NSString*)str; How is this called in swift? Is it myobj.addNumber(42, withString:"Hello World")?
-(void)addNumber:(NSNumber)num withString:(NSString)str;
to addNumber_withString(num, str)
Swift could be different, though.Re: The Swift Programming Language
#386I'm not even an iOS developer but this is by far the most exciting thing I heard in the keynote. As an amatuer/hobbyist programmer who's self-taught with Ruby, JavaScript, etc., the one thing that was keeping me from experimenting with iOS apps was Objective-C. I know I could tackle it, but it's been hard to take the plunge. I don't know much about Swift yet, but from what I've seen it looks very exciting. So if Appl…
Swift looks amazing and I'm really excited to try it out tonight! Great job Apple devs.
Re: The Swift Programming Language
#387Re: The Swift Programming Language
#388Earlier quoted context omitted.
Swift uses the Obj-C runtime and interoperates with Obj-C code. Those languages assume a shared heap. If Swift modules didn't perform atomic reference counts, that would quite likely break Obj-C code operating on the same heap.
You'd break a ton of Cocoa APIs too.
Re: The Swift Programming Language
#389A lot of the syntax is incredibly similar to rust.
Re: The Swift Programming Language
#390As someone who always disliked Objective C, I think Swift looks very promising. I'll check it out right away :) Software-wise, I feel these current WWDC announcements are the most exciting in years. Looking at the Swift docs right now, I can see many interesting inspirations at work: there's some Lua/Go in there (multiple return values), some Ruby (closure passed as the last argument to a function can appear immediat…
Direct link to Elm's demo similar to Bret Victor's: http://debug.elm-lang.org/edit/Mario.elm (video: https://www.youtube.com/watch?v=RUeLd7T7Xi4)