News for hackers. Stuff that matters.
Re:Swift 5.2 by pjmlp on Wednesday March 25, 2020 @03:25AM (#22682628)
So import Glibc is still a thing?
Re:Swift 5.2 by hiq on Wednesday March 25, 2020 @04:41AM (#22682924)
Can you expand on this?
Re:Swift 5.2 by pjmlp on Wednesday March 25, 2020 @05:15AM (#22683047)
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.

Re:Swift 5.2 by zerr on Wednesday March 25, 2020 @05:50AM (#22683187)
Interesting, although, at least they have a cross-platform random now (Int.random, Float.random, ...).