“We need to get one thing out of the way: Rust is cool. It’s fun.
“It’s tempting to try to sweep this under the rug because it feels gauche to say, but it’s actually important for a number of reasons.
“For one, fish is a hobby project, and that means we want it to be fun for us. Nobody is being paid to work on fish, so we need it to be fun. Being fun and interesting also attracts contributors.”
@kdwarn Congratulations to the fish team! Your work is very much appreciated.
#FishShell
> Most of this would be solved if Rust had some form of saying “compile this if that function exists” - #[cfg(has_fn = "fstatat")].
I WANT THIS SO MUCH.
@argv_minus_one @kdwarn I could have sworn there was already work ongoing on this, but apparently not -- all I found was a workaround for very limited cases in https://users.rust-lang.org/t/conditionally-compile-code-based-on-presence-or-absence-of-a-symbol-in-a-dependency/100803
"This might be possible with C23’s #embed, but Rust allowed us to do it now and, overall, pretty easily."
lol, the backstory of that one is another hit on c++