2 ms·
> errno is implemented differently on every platform, > But Rust can't read the C header, so it must literally special-case every OS [1]. That's a bit of an o
by nicoburns 8y ago
> errno is implemented differently on every platform,
> But Rust can't read the C header, so it must literally special-case every OS [1].
That's a bit of an odd point. You're saying that the C standard library implementation of errno is different on each platform, but abstracted in the standard library so that C programs can just import it and run a portable function.
...and then you complain that Rust does the same...