Re:Swift 5.2
by pjmlp on Wednesday March 25, 2020 @03:25AM
(#22682628)
So import Glibc is still a thing?
[ Parent
| on HN ]
Can you expand on this?
Swift still doesn't have a mature standard library implementation that works across all platforms.
So you have to do OS specific imports directly, for basic stuff like calling a random number generator or handling IO.
It is even done so on the introduction pages, https://swift.org/getting-started/
Foundation outside Apple platforms is pretty much WIP.