2 ms·
Rust libraries don't really hide allocation any more than modern C libraries do. (And if you aren't using modern libraries for stuff like string handling in C,
by pcwalton 9y ago
Rust libraries don't really hide allocation any more than modern C libraries do. (And if you aren't using modern libraries for stuff like string handling in C, you should be.)
- notriddle 9y agoIsn't the point of this whole argument about avoiding abstraction?
- pcwalton 9y agoI don't see any way in which string.h is less abstract in the "close to metal" sense than a real string or vector library (or Rust) is. The standard C library offers abstractions, just poor ones.
- kibwen 9y agoNot sure why this is being downvoted. Whether or not anyone out there likes Rust, dislikes Rust, or is completely apathetic to Rust, we can unanimously agree that the standard string-handling routines in C are quite poor. This isn't a controversial statement.
- mwcampbell 9y agoWhat modern C libraries do you have in mind?