develooper Front page | perl.perl6.language.subs | Postings from July 2001

RFC 128: Re: Automatically en-referencing arguments

Jeremy Norris
July 31, 2001 09:38
RFC 128: Re: Automatically en-referencing arguments
Message ID:
What is the advantage of automatically en-referencing arguments?

I can see no clear advantages other than marginally less typing, 
however, you will have to explicitly en-reference the argument when the 
argument is a reference to a reference anyway.

A disadvantage is significantly less clarity of the actual function 
call.  When you see a function argument, you can't determine whether it 
is passed by reference or value unless you go and look at the function 

Could someone please explain to me what the advantages are?  Thanks. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About