在 Sep 4, 2006 2:11 AM 時,Gaal Yahas 寫到:
Unless I'm mistaken, this doesn't cast back to subroutine signature
land
very well:
sub f1 (Dog ($fido, $spot)) { ... }
sub f2 (Dog $ ($fido, $spot)) { ... }
sub f3 (Dog :($fido, $spot)) { ... }
Correct.
Unless Audrey's latest
sub traverse ( BinTree $top ( $left, $right ) ) { ... }
LS06/Unpacking tree node parameters has two infelicities I wanted to
fix with a patch. The first is that this style of unpacking is really
syntactically a Signature, but most the examples in this section
abbreviate out the optional colon