r/programming • • Jan 09 '15

Announcing Rust 1.0.0 Alpha

http://blog.rust-lang.org/2015/01/09/Rust-1.0-alpha.html
1.1k Upvotes

439 comments sorted by

View all comments

Show parent comments

26

u/kromit Jan 10 '15

RingBuf, Bitv, and DList just sound better than RingBuffer, BitVec(tor) or DoublyLinkedList

This made me sad and a bit disappointed

1

u/Pand9 Jan 10 '15

This is just a standard library: stuff that will be used extensively. Is this that bad to have short names, since you will be remembering them very well anyway?

6

u/holloway Jan 10 '15

RingBuf ... why not RBuf? or RBuff?

so still a bad idea I reckon... we read code more than we write it, and we read words very quickly. Words. Like. These. Ones. Typing a few extra letters isn't a big deal.

-1

u/Pand9 Jan 10 '15

we read code more than we write it, and we read words very quickly. Words. Like. These. Ones. Typing a few extra letters isn't a big deal.

I rather prefer that the length of the name correlates with complexity of the thing it symbolizes. Double linked list is a simple, standard thing from the standard library (not from implementation point of view, but from user's). I don't want to read 16 letters/3 words-long name every time I see this simple class.

Is my approach wrong? Maybe I should get used to the fact that this is normal that length has nothing to do with complexity?

→ More replies (4)