Re:Show HN: tere – A Faster Alternative to cd+ls
by enriquto on Friday July 15, 2022 @11:03AM
(#32108894)
What is the point of this function? In rust, there's no equivalent to sprintf?
[ Parent
| on HN ]
Re:Show HN: tere – A Faster Alternative to cd+ls
by mynameisvlad on Friday July 15, 2022 @11:07AM
(#32108935)
https://doc.rust-lang.org/std/fmt/
Different tools for the same job. One is explicitly integer to string conversion the other is sting formatting.
You can technically use the latter, but some prefer a function which explicitly does one thing and one thing only.
Re:Show HN: tere – A Faster Alternative to cd+ls
by pie_flavor on Friday July 15, 2022 @02:20PM
(#32111232)
More accurately, some prefer a function that is statically dispatched and does not talk to std::fmt::Formatter.