Kerry Buckley

What’s the simplest thing that could possibly go wrong?

My (very!) small part in the Array#forty_two controversy

one comment

For those outside the Rails community who have no idea what I’m on about, some people got a bit upset about Rails 2.2 defining Array#second up to Array#tenth, so for example you can call foo.fifth instead of foo[4] (you can already call foo.first instead of foo[0]). One of the last changes to be committed before 2.2 was released was to slim the list down to just second, third, fourth and fifth, but adding Array#forty_two (the ultimate answer) instead.






Written by Kerry

November 24th, 2008 at 12:52 pm

One Response to 'My (very!) small part in the Array#forty_two controversy'

Subscribe to comments with RSS or TrackBack to 'My (very!) small part in the Array#forty_two controversy'.

  1. Good catch there!

    However, this sort of syntactic sugar makes me shudder…


    25 Nov 08 at 8:13 am

Leave a Reply

You must be logged in to post a comment.