>>>>> "Chaim" == Chaim Frenkel <[EMAIL PROTECTED]> writes:

>>>>> "GB" == Graham Barr <[EMAIL PROTECTED]> writes:
GB> On Tue, Aug 01, 2000 at 07:41:59PM -0700, Randal L. Schwartz wrote:
>>> >>>>> "Chaim" == Chaim Frenkel <[EMAIL PROTECTED]> writes:
>>> 
Chaim> It's the overloading of the ',' operator.
>>> 
>>> Just like the overloading of the @ARRAY_NAME operator or the
>>> getpwuid() operator.  Perhaps you are back to merely complaining about
>>> all context-sensitive things again. :-)

GB> No, I think the main problem is that many do not graps the list vs
GB> array distinction and would possibly document the sub wrong, giving
GB> a surprise when it is used.

Chaim> Then perhaps, just get rid of the list/array distinction? Make
Chaim> everything an array?

Because it's useful to have it the way it is.  I think the problem is
that too many people call:

        (4,5,6)

a *list*. It's only a list in a list context.  It's a comma operator
in a scalar context.

You need a list vs. array distinction.  An operator can't return an
array.  It can only return a list.  Unless you're inventing a
different language. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to