(no title)
TheGrassyKnoll | 4 years ago
$ cargo install unicode_segmentation (chokes)
$ cargo install unicode-segmentation (seems to work)
and in Cargo.toml
[dependencies]
unicode-segmentation = "1.7.1" (seems to work)
yet in the code, its:
use unicode_segmentation::UnicodeSegmentation;
Why couldn't they be consistent using a dash vs. an underscore ?
estebank|4 years ago
a1369209993|4 years ago
Huh? That seems clearly untrue, eg `fnfoo` vs `fn foo` or `x && y` vs `x & &y` or `x<<shift_or_type > ::foo` vs `x < <shift_or_type>::foo`? Presumably for some or all of those, one version ends up being a error (eg bitwise and with a pointer from `x & &y` probably doesn't work), but that's not at the level of tokenization.
steveklabnik|4 years ago
You can’t use -s in Rust identifiers, so they need to be normalized to _ to be referred to in code.
mvolfik|4 years ago
unknown|4 years ago
[deleted]