News for hackers. Stuff that matters.
Re:Perl Myths Talk 2009 by jrockway on Friday September 25, 2009 @08:51PM (#844800)
No offense, but your "tree == 3" is hard to read. Most people assume == means "equal to", and containers cannot be equal to the integer 3.

I can guess that you mean the length, but if that's the case, why don't you write "length(tree) == 3"? If we are just going to guess to understand, then we have the same problem with Lua that we have with Perl. With Perl, you can guess that $array->[number] is an array lookup, that the $ in "$foo" is essentially meaningless, and so on.

In other words, Lua and Perl are both hard to read.

There are no comments on this comment yet.