http://www.perlmonks.org?node_id=153412


in reply to Re: Re: Plural variable naming (or not?)
in thread Plural variable naming (or not?)

Interesting... I'd have thought that @plural would be more intuitive than @singular_list. Obviously, your mileage varies.

The one place I can see where this would be a distinct advantage is when you're using Perl arrays as different data types. For instance:

my @foo_list; my @bar_stack; my @baz_queue; my @xyzzy_heap;

If these were just plurals, it would be impossible to tell just from the names which one was a stack, or a queue, or whatever -- which could be a very bad thing.

--
:wq