>For me, yeah. But I can name at least 30 people in my building alone
>that have been hacking Perl for years who wouldn't get this. And a "well
>they don't know what's going on" argument doesn't work. Not everyone is
>a Perl expert.
I will always find this argument specious. Some people "hack on X" for
years but never but scratch the surface. There are various reasons for
this, depending. But you won't fix it--espeically by adding more crudola
for them to scratch up.
>Besides, you're telling me this:
> foo(list bar())
>is *LESS* intuitive? I really don't buy that.
Noting that we use [] for an anon array and {} for an anon hash,
not ARRAY or array and HASH or hash, it seems to follow to use ()
for the list.
It's not my fault that people don't know this. I've certainly
explained it.
% tcgrep '^\s.*\(\s*\)\s*=' ~/cookbook/*.pod
/home/tchrist/cookbook/chap10.pod: () = some_function();
% tcgrep '^\s.*\(\s*\)\s*=' ~/camel/*.pod
/home/tchrist/camel/200lexical.pod: () = funkshun();
/home/tchrist/camel/200lexical.pod: $x = ( () = funk() ); # also set
$x to funk()'s return count
/home/tchrist/camel/290subs.pod: canmod() = 5; # Assigns to $val.
/home/tchrist/camel/290subs.pod: nomod() = 5; # ERROR
/home/tchrist/camel/650threads.pod: $t1->tid() == $td->tid()
--tom