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

RFC 128: Re: Automatically en-referencing arguments

From:
Jeremy Norris
Date:
July 31, 2001 09:38
Subject:
RFC 128: Re: Automatically en-referencing arguments
Message ID:
3B672592.8070202@rebel.com
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 
signature.

Could someone please explain to me what the advantages are?  Thanks.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About