> This RFC proposes two new keywords -- C<private> and C<public> -- that limit
> the accessibility of keys in a hash, and of methods.
I still think these should be attributes across the board:
my $hash{$key} : private = $val;
my @hash{qw(_name _rank _snum)} : public;
sub dostuff : private { }
I'd be interested what others think.
-Nate
- RFC 188 (v2) Objects : Private keys and methods Perl6 RFC Librarian
- Re: RFC 188 (v2) Objects : Private keys and metho... Nathan Wiger
- Re: RFC 188 (v2) Objects : Private keys and m... Jonathan Scott Duff
- Re: RFC 188 (v2) Objects : Private keys a... Nathan Wiger
- Re: RFC 188 (v2) Objects : Private keys a... Damian Conway
- Re: RFC 188 (v2) Objects : Private ke... Nathan Wiger
