Re: RFC 57 (v1) Subroutine prototypes and parameters

[email protected] (Damian Conway) Tue, 8 Aug 2000 06:28:27 +1000 (EST)
Newsgroups perl.perl6.language.subs
Message-ID <[email protected]>
   > Why not a new syntax?
   > 
   > 	foo($x : 10, $y : 20);
   > 	bar($z : 30, @t : (1, 2, 3));
   > 
   > To me, the colon indicates something like expectation: $x will become
   > 10, but not just yet.

I'd be inclined to drop the prefixes:

   	foo(x: 10, y: 20);
   	bar(z: 30, t: (1, 2, 3));

Damian