As an English speaking engineer, "vector" has real meaning and immediately recognize "vec" as an abbreviation of that, but a school kid in Shanghai (上海) shouldn't need to know everything I do to start learning the language. Long names can be easier to discover the meanings of.
Anyways, here's another good place to drop this link: http://www.youtube.com/watch?v=_ahvzDzKdB0&feature=gv (Growing a Language, by Guy Steele). :D -- Kevin Cantu On Tue, Jul 17, 2012 at 10:36 AM, Sebastian Sylvan <sebastian.syl...@gmail.com> wrote: > On Tue, Jul 17, 2012 at 7:41 AM, Graydon Hoare <gray...@mozilla.com> wrote: >> Though obviously not the same style as Java, C# or (curiously) Haskell, I >> haven't heard a _lot_ of clear feedback on this point. Patrick has been >> advocating for us to change house style to writing type names as TypeNames, >> but aside from that ... is vowel-omission or abbreviation seriously an >> issue? (eg. python putting regular expressions in 're' or system services in >> 'sys'?) Maybe having more-verbose type names, but keeping module names >> short, is a good balance? > > IMO I like the shorter names. As long as it doesn't cause ambiguity. > "vector" tells me nothing that "vec" doesn't, so saving some screen > real-estate to speed up reading (and typing) is a win. It's not > black-and-white though. If something is used infrequently enough that > you don't expect people to remember it by heart, avoid short mnemonics > in favour of descriptive names. If it's unsafe and should stick out > like a sore thumb, avoid short names. For library stuff that's > essentially just shy of being a built-in language feature (like vec, > cmp, ptr, etc.) shorter names make sense IMO. > > -- > Sebastian Sylvan > _______________________________________________ > Rust-dev mailing list > Rust-dev@mozilla.org > https://mail.mozilla.org/listinfo/rust-dev _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev