Re:Ranges, Code Quality, and the future of C++
by saagarjha on Wednesday December 26, 2018 @05:57PM
(#18765602)
Apple supports Objective-C, which is arguably just as bad as C++.
[ Parent
| on HN ]
Re:Ranges, Code Quality, and the future of C++
by pjmlp on Wednesday December 26, 2018 @06:26PM
(#18765774)
It does, due to its NeXTSTEP legacy, but the roadmap is quite clear.
"Swift is intended as a replacement for C-based languages (C, C++, and Objective-C)."
Taken from https://swift.org/about/
"Swift is a successor to both the C and Objective-C languages."
Taken from https://developer.apple.com/swift/
Re:Ranges, Code Quality, and the future of C++
by saagarjha on Wednesday December 26, 2018 @06:33PM
(#18765809)
I would be very surprised if Apple’s frameworks ended up becoming Swift-only any time in the next decade. While Swift is the spiritual sucessor to Objective-C, there is far too much Objective-C already written that would be costly to obsolete, even if Swift had the facilities to do everything Objective-C can (and, as I’m sure you’re aware, it is not at that point yet).
Re:Ranges, Code Quality, and the future of C++
by pjmlp on Wednesday December 26, 2018 @06:39PM
(#18765851)
Sure, but that will eventually happen, even if they do just a couple of components per OS release.
Launchd, dock were announced as rewritten at WWDC 2017, the new XCode build system and instrumentation at WWDC 2018, and it will continue little by little.
Naturally it won't happen overnight, but Apple isn't known to endure Python 2/3 scenarios for that long.
Re:Ranges, Code Quality, and the future of C++
by saagarjha on Wednesday December 26, 2018 @06:46PM
(#18765915)
Those are not frameworks, those are apps that ship as part of the system. Apple has not and seemingly will not deprecate Objective-C for third party developers. They haven’t even rewritten any significant code in Swift, IIRC. Maybe parts of launchd?
Re:Ranges, Code Quality, and the future of C++
by mnem on Wednesday December 26, 2018 @09:19PM
(#18766757)
Timac analysed several MacOS and iOS versions for swift usage, and its growing through the system surprisingly rapidly for a language awaiting a stable ABI. Here’s the most recent analysis, which also links to others: https://blog.timac.org/2018/0924-state-of-swift-ios12/
Re:Ranges, Code Quality, and the future of C++
by saagarjha on Wednesday December 26, 2018 @10:02PM
(#18766918)
Yup, I’ve read those and that’s what I based my statement on. Apple doesn’t seem to have rewritten any code in Swift “just for the sake of it”; they have slowly introduced it the in places they could to add new features.