|
|
|
|
|
by pjmlp
2340 days ago
|
|
Here, https://swift.org/getting-started/#using-the-repl > On macOS 1> import Darwin
2> arc4random_uniform(10)
$R0: UInt32 = 4
> On Linux 1> import Glibc
2> random() % 10
$R0: Int32 = 4
Any of the languages that Swift is competing against, doesn't need to have OS specific imports for basic stuff. |
|
Basically they set a portability boundary in the wrong place.