From: Fuad Saud Date: 2013-10-18T02:19:09-03:00 Subject: [ruby-core:57930] Re: [CommonRuby - Feature #9023] Array#tail --001a1132ea08f92b8504e8fd12c8 Content-Type: text/plain; charset=ISO-8859-1 I can understand maybe tail is not the best name to describe this concept, nor any of the other options. But it is still a pretty common idiom among many functional languages. I like cdr, but it wouldn't make much sense to introduce it in ruby today - it may confuse newcomers a lot, since that's not vey intuitive. Rest doesn't feel right. What is rest? It's a remainder, but if you drop the last element, then what remains is still a kind of rest :/ Butfirst is weird for me, but bbatsov (powerpack maintainer) prefered it over tail, and it makes it very clear what it means (e.g. people.but_first.each do ... means iterate over people but the first). --001a1132ea08f92b8504e8fd12c8 Content-Type: text/html; charset=ISO-8859-1

I can understand maybe tail is not the best name to describe this concept, nor any of the other options. But it is still a pretty common idiom among many functional languages.

I like cdr, but it wouldn't make much sense to introduce it in ruby today - it may confuse newcomers a lot, since that's not vey intuitive.

Rest doesn't feel right. What is rest? It's a remainder, but if you drop the last element, then what remains is still a kind of rest :/

Butfirst is weird for me, but bbatsov (powerpack maintainer) prefered it over tail, and it makes it very clear what it means (e.g. people.but_first.each do ... means iterate over people but the first).

--001a1132ea08f92b8504e8fd12c8--