Damian Conway <[EMAIL PROTECTED]> writes:

> Okay, what if C<with> simply aliased its hash argument to a
> localized %_ (remember that one?):
> 
>         with (%ws) {
>                 print $_{height};       # prints $ws{height}
>                 print $height;          # perl5 visibility rules
>         };
> 
> That's only two extra characters compared to your proposal, and
> *much* more Perlish.

Yes, and the gain would be zero.

IMHO, the 'with' issue is related to the 'struct' issue. The gain
would be twofold: less to type and speed of access. Personally, I
think the latter is more important. With pseudo-hashes (or structs, do
we have structs yet?) the compiler can compile the field reference into
a direct access.

-- Johan

Reply via email to