develooper Front page | perl.perl6.language | Postings from September 2001

RE: Expunge implicit @_ passing

Thread Previous | Thread Next
From:
Hong Zhang
Date:
September 4, 2001 09:30
Subject:
RE: Expunge implicit @_ passing
Message ID:
400CE9390E334A4393CEECDD6863120A28A035@ussccm003.corp.palm.com

> >The only good justification I've heard for "final" is as a directive
> >for optimization. If you declare a variable to be of a final type, then
> >the compiler (JIT, or whatever) can resolve method dispatch at
> >compile-time. If it is not final, then the compiler can make no such
> >assumption because java code can load in extra classes later.
> 
> This is the only real reason I've seen to allow final. (And it's not a bad

> reason, honestly, though not necessarily one appropriate in all cases) It 
> does allow a fair amount of optimization to be done, which can be 
> especially important when you can't see all the source. (Pretty much the 
> case in all languages that compile down to object modules you 
> link together later)

If our intention is only for optimization, I prefer to use word "inline" 
instead of "final". The word "final" already has been abused. It is very
awkward to use it for this purpose.

Hong

Thread Previous | Thread Next


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