Rust crate naming tip: use hyphens not underscores. Hyphens are idiomatic and Cargo does the conversion to underscore in your Rust code automatically.
-
-
Replying to @nick_r_cameron
Why are hyphens idiomatic? What's the benefit that makes it worth every rust user having to learn this extra thing, vs. just saying underscores are idiomatic?
3 replies 0 retweets 0 likes -
Replying to @gibfahn
Also, there is nothing really to learn - you just do what everyone else is doing and everything just works.
1 reply 0 retweets 0 likes -
Replying to @nick_r_cameron
As a crate user I have to remember to add `bit-vec` to Cargo.toml, but `extern crate bit_vec` in the file. That they aren't the same is not exactly intuitive. `cargo add bit_vec` works though, which makes it easier. A better error message for `extern crate bit-vec` would be
.1 reply 0 retweets 0 likes
Raised https://github.com/rust-lang/rust/issues/48437 … for better error messages with `extern crate hyphen-mistake`.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.