News for hackers. Stuff that matters.
Re:On Apple's Love Affair with Swift by pjmlp on Saturday August 11, 2018 @10:16AM (#17739754)
Other than safety, that is.
Re:On Apple's Love Affair with Swift by apple4ever on Saturday August 11, 2018 @03:53PM (#17741239)
Meh, I think that is overrated.
Re:On Apple's Love Affair with Swift by kitsunesoba on Saturday August 11, 2018 @05:10PM (#17741554)
It boils down to the self discipline of individual developers. If you’re meticulous in making sure you’ve dotted your I’s and crossed your T’s and haven’t let too many of those insidious cast statements slip in, you can write reasonably safe Obj-C, but during my career as an iOS dev I have yet to encounter an Obj-C codebase that was fully written by such developers. They’ve all been riddled with gratuitous casting, erroneous type assumptions, and other bad practices (that aren’t possible in Swift) to the point that it’s a wonder that they ever functioned as intended.

Personally though, I’ve found that even when I’m keeping a close guard on things when writing Obj-C and am sure to avoid all the obvious pitfalls, bugs slip through in the most unexpected places, so I’m quite happy to have the Swift compiler double checking everything for me.

Re:On Apple's Love Affair with Swift by valuearb on Saturday August 11, 2018 @06:49PM (#17741962)
I’ve never understood this opinion, and always wonder if it’s a professional developer espousing it. Because most of your time as a commercial developer is spent debugging, and Swift makes it far easier to write correct code, and to find bugs when you write incorrect code.
Re:On Apple's Love Affair with Swift by blub on Sunday August 12, 2018 @04:10AM (#17743468)
On a positive note, at least you're just writing buggy programs and not killing your patients somewhere or causing industrial accidents.

Unfortunately, as software continues disrupting various industries, it's less and leas certain that even buggy programs written by someone who thinks that safety is overrated will remain harmless.

Re:On Apple's Love Affair with Swift by pjmlp on Sunday August 12, 2018 @12:45PM (#17745172)
Only because software is a special snowflake where companies aren't held responsible for shitty software.