News for hackers. Stuff that matters.
Re:Tour of Rust by jfkebwjsbx on Tuesday July 14, 2020 @01:01AM (#23828691)
> I'm also arguing against it being provided in the stdlib because Rust is big in avoiding "you're holding it wrong" kind of answers

Even if it was true that Rust is big on that, such a function is not "holding it wrong", it is just a matter of convenience and development speed vs. performance.

For the vast majority of code it does not matter whether you allocate a few times or not. The timing difference is in the noise.

Let Rust be a convenient language rather than a PITA.

There are no comments on this comment yet.