Why Nostr?What is Njump?
fiatjaf /
npub180c…h6w6
2024-01-14 14:55:28

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

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

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.

Author Public Key
npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6