Hacker News new | past | comments | ask | show | jobs | submit login

Sounds like you would find the Trait system in Rust very interesting.

https://play.rust-lang.org/?version=stable&mode=debug&editio...




Traits are okay in principle but, as a Rust beginner, the huge number of trait implementations make browsing the api docs overwhelming. For example, the list of implementations for String don't even fit on the screen at once. [1] It seems very repetitive and I wish there were an easier way to get an overview of what functionality is available and find the right method to call.

[1] https://doc.rust-lang.org/std/string/struct.String.html


It's not a great solution, but I've found it beneficial to lean heavily on the Rust docs search bar when looking for specific behavior. It's very fast, and fuzzy enough that it finds what I'm looking for most of the time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: