3 ms·
> While this sounds convenient, this abstraction does not work across platforms; Windows actually doesn't have the precise concept of file permissions. Go ends
by latchkey 4y ago
> While this sounds convenient, this abstraction does not work across platforms; Windows actually doesn't have the precise concept of file permissions. Go ends up allowing us to set a file permission code on Windows, even when doing so will have no effect. ... If you want to set a file permission code in Rust, you have to explicitly annotate the code as Unix-only.
Go is already doing that explicit annotation for you. You write the code once, and under the covers, it just works across platforms because it has already helped you with the decision.