by manmal · 10y ago · 0 comments
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/
It's almost like saying javascript will replace C/C++. I want a nice language like Swift (or Go) to replace C but there is none. Rust was the best/latest failed attempt.
Of course it can, it is just a matter of OS vendors caring to push it down developers throats.
There are ways to manually manage memory if required to do so, but then you suffer the consequences of dealing with Unsafe*.
The whole UB idiocy is a different matter, though related because it's perpetrated by roughly the same group of people, for similar nonsensical and non-validated reasons. See my post http://blog.metaobject.com/2014/04/cc-osmartass.html
See also: http://www.complang.tuwien.ac.at/kps2015/proceedings/KPS_201... and Proebsting's Law.
Improvements required for the toolchain in a young language, than Apple, IBM and others will certainly improve.