The Swift Programming Language
361–370 of 970 posts
Re: The Swift Programming Language
#362Earlier quoted context omitted.
I'm not sure you can be Objective-C compatible without a shared heap. If you have a shared heap, you need atomic reference counting.
No. If you take the attitude that you're only covered if you use the concurrency primitives correctly, then you don't need atomic reference counting for everything. Basically, the programmer can use CSP to ensure that only one thread is messing around with any given section of the heap at a time, and the language implementers could say you're SOL if you do otherwise. (That probably isn't the Apple way, though.)
Re: The Swift Programming Language
#363Re: The Swift Programming Language
#364Earlier quoted context omitted.
I didn't use that term until after the downvotes.
The post in this thread uses the term "clueless hipsters" in its first sentence. That phrase will attract downvotes. If you care about downvotes stop using needlessly polarising terminology. If you don't care about downvotes, well, do whatever.
Re: The Swift Programming Language
#365 -(void)addNumber:(NSNumber*)num withString:(NSString*)str;
How is this called in swift? Is it myobj.addNumber(42, withString:"Hello World")?Re: The Swift Programming Language
#366Re: The Swift Programming Language
#367"...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.
Heartbleed. Majority of all SSL keys on the internet compromised. All ~2 billion of humans on the internet required to change their passwords due to a single mistake by a single programmer using C. That's billions of human beings wasting hours either changing all their passwords or having their money, identities, medical records, and more stolen because they didn't. Having their accounts hijacked. For all we know tot…
Re: The Swift Programming Language
#368Earlier quoted context omitted.
You can do this in C# (and presumably other languages). I've seen people using Greek symbols in mathy code before. It's kind of fun.
It's fun once. It's impractical for someone editing the code later though, I don't want to have to look up the unicode character each time I want to remember it, and I don't want to have to copy and paste it either, it's better to stick with the characters available on a keyboard.
Re: The Swift Programming Language
#369I'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…
> So if Apple's goal was to get new devs into the iOS world, at least > from 10k feet, it's working They just announced Swift, at a conference for Apple developers, with live streaming that is only easily accessed from an ios device. I think it is probably premature to pop the corks and celebrate the efficacy of the get new developers initiative.
Re: The Swift Programming Language
#370Earlier quoted context omitted.
iBooks app is also available on the Mac. As the language is Mac and iOS specific it's not all that crazy.
hah, it seems iBooks is only available on Mavericks. Rather frustrating when I just want to read the documentation.