2 ms·
The standard lib has no special privileges, it's written entirely using the same language features available to everyone. There are probably 2 reasons the docu
by AnIdiotOnTheNet 8y ago
The standard lib has no special privileges, it's written entirely using the same language features available to everyone.
There are probably 2 reasons the documentation uses a simplified example:
1) the ability to introspect a type for the presence of a field or definition before attempting to use it is relatively new
2) the actual implementation of fmt.format is rather long and involved
- CUViper 8y ago> The standard lib has no special privileges, it's written entirely using the same language features available to everyone. Sort of -- it uses a lot of unstable features that are only available to outsiders with the nightly compiler.
- steveklabnik 8y agoYour parent is talking about Zig, not Rust, I believe.
- CUViper 8y agoAh, ok. I suppose that's still a useful thing to say about Rust std though. :)