> But at the same time I get your point just use #if #else #endif to 
> conditional import / call functions... but coding like that doesn't seem vary 
> fun... reminds me of looking a C code that was meant to be compiled on 
> different processor architectures. :-( 

I would really like to see Swift offer a “POSIX” or “LibC” module which would 
import whatever the current platform offered for a C library. Obviously there 
would be differences between Glibc and Darwin.C, and I wouldn’t expect Swift to 
try to paper those over, but this `#if os` dance in every file is kind of 
ridiculous.

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to