Norgg
10/4/2006 10:25:00 AM
aidy wrote:
> Hi,
>
> I have noticed Ruby coders using 1 character variables names (e.g. t,d)
>
> Is this done because Ruby is a dynamic language and any object can be
> held in these variables?
>
> aidy
>
It's done mostly because of laziness, usually when you're just using the
variable for one or two statements after it's declared and then throwing
it away again, such as in an iterator or rescuing an exception.