<?xml version="1.0" encoding="windows-1252"?>
<node id="153412" title="Re(3): Plural variable naming (or not?)" created="2002-03-21 15:34:09" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="95145">
FoxtrotUniform</author>
<data>
<field name="doctext">
&lt;p&gt;Interesting... I'd have thought that @plural would
be more intuitive than @singular_list.  Obviously,
your mileage varies.&lt;/p&gt;

&lt;p&gt;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:&lt;/p&gt;

&lt;code&gt;
my @foo_list;
my @bar_stack;
my @baz_queue;
my @xyzzy_heap;
&lt;/code&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;
&lt;tt&gt;-- &lt;br&gt;
:wq&lt;/tt&gt;
&lt;/p&gt;</field>
<field name="root_node">
152710</field>
<field name="parent_node">
152944</field>
</data>
</node>
