On Tue, 22 May 2001, Graham Barr wrote:

> On Tue, May 22, 2001 at 12:29:33PM +1000, Damian Conway wrote:
> > 
> > We actually want the possibility of that kind of namespace collision:
> > for polymorphism.
> 
> Many people keep bringig this up as a confusion and you give the same reply.
> 
> With the current approach I can see most code accessing properties with 
>$var.prop{name}
> because they want to make sure they get the property and not a method, whereas
> it would be shorter, in the common case, to have something like  $var'name
> 
> Graham.


        I am one of the people who brought this up as confusing and
requested a separate syntax, so I obviously agree with Graham.  I would
like to vote against the $var'name suggestion, though, for several
reasons:
        - it could conflict with old Perl 4 code (which is still out
there),
        - having an unmatched ' screws up most highlighting editors
        - I personally think it is an unattractive syntax (MHO)


                        Dave

Reply via email to