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

24 November 2008

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

Filed under: General nonsense,Rails,Ruby — Kerry Buckley @ 12:52 pm

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.

dhh_tweet.png

commit_1.png

kerry_reply.png

dhh_reply.png

commit_2.png

1 Comment »

  1. Good catch there!

    However, this sort of syntactic sugar makes me shudder…

    Comment by FND — 25 November 2008 @ 8:13 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress