Chaim: ISO8859-1 on purpose, look at last paragraph.
Reply on laptop in wilderness (no network) holydays me void this message by
other messages sent in my absence. Ignore if so.
On 7 Aug 2000 14:35:50 -0000, Perl6 RFC Librarian <[EMAIL PROTECTED]> wrote:
> =head1 ABSTRACT
>
> Perl 6 should provide support for named subroutine prototypes. This
> should permit the use of positional and named parameters, default
> values and optionally, type checking.
I like the story to be extended in a way that the perl parser has to do a two
way scan of the source before applying the prototypes and name asignments. I
mean that I want to be able to declare and define the sub with prototypes
AFTER the call and
use proto;
my $y = foo (10, 20); # Valid and OK
my $x = foo (y : 20, x : 10); # Same as above
my $z = foo (3, y : 8, 19); # syntax error
sub foo ($x = 4, $y = -12)
{
# stuff
} # foo
Be valid all the way. (asuming x : 10 is the way things turn out to go)
> =head1 DESCRIPTION
> [...]
> RFC 9 proposes "Highlander Variables" in which C<$y> is implicitly a reference
> to C<%y> or <@y>. This would allow lists and hashes to be passed by reference
> as named parameters to the same effect. This is preferable to the above, (in
> the author's opinion) because the different types are more clearly
> disambiguated.
>
> bar(x = 10, y = [ 10, 20, 30 ]);
> baz(x = 10, y = { one => 1, two => 2 });
As I opposed in RFC 9, I do again here. I DON'T WANT HIGHLANDER VARIABLES! I
want to be able to use $y, @y, %y, &y, ^y and whatever new kind of variable
types (*y if globs are dropped, �€y, ¡y, ¢y, £y, ¤y, ¥y, ©y, ¬y, ®y,
±y (like that one), ¶y, or whatever is possible in UTF8) alongside eachother.
It has it's charmes, though John Porter will disagree.
--
H.Merijn Brand Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl5.005.03, 5.6.0 & 516 on HP-UX 10.20, HP-UX 11.00, AIX 4.2, AIX 4.3,
DEC OSF/1 4.0 and WinNT 4.0 SP-6a, often with Tk800.022 and/or DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/