Rust's .into() is a strictly bad thing

User Avatar
fiatjaf August 31, 2023

It just makes the code unreadable for no gain.

Instead of defining methods with readable and meaningful names for transforming objects into other objects and calling those, the .into() bad practice just teaches everybody to write .into() everywhere, making the code impossible to read without a superpowered editor -- and sometimes even with it.