On Thu, 7 Sep 2000, Michael G Schwern wrote:
On Wed, Sep 06, 2000 at 06:40:10PM -, Perl6 RFC Librarian wrote:
Cscalar(%hash) should return what Cscalar(keys %hash) currently
returns.
Good.
I'll weigh in with a "me too" on this.
Creset %hash should reset the hash
On Wed, 6 Sep 2000 22:58:05 -0400, John Porter wrote:
keys %hash = @things;
is defined as being equivalent to
@hash{ @things } = ();
Two more details to think about:
%hash = ( b = 'beta', d = 'delta' );
keys %hash = qw(a b c);
What happens to the values that
On Wed, Sep 06, 2000 at 06:40:10PM -, Perl6 RFC Librarian wrote:
Cscalar(%hash) should return what Cscalar(keys %hash) currently
returns.
Good.
Creset %hash should reset the hash iterator, instead of calling
Ckeys or Cvalues as is currently the case.
Sounds good, except the name.
Michael G Schwern writes:
Creset %hash should reset the hash iterator, instead of calling
Ckeys or Cvalues as is currently the case.
Sounds good, except the name. reset() already does something.
Currently, reset() is for clearing large swaths of global variables (a
dubious feature) and
On Thu, Sep 07, 2000 at 10:22:17PM -0600, Nathan Torkington wrote:
Michael G Schwern writes:
I was expecting those two crufty features to be removed. If they
aren't, a third won't hurt.
Might want to add this assumption to the RFC. Or perhaps another RFC
to junk reset()'s current meaning.
Michael G Schwern writes:
Okay, the example says on thing and the text of the proposal says
another.
Sorry, I thought you were talking about a different section of code.
I'll resubmit tomorrow.
So you're proposing that Csort %hash act like Cmap { $_ =
$hash{$_} } sort keys %hash? I can
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
More direct syntax for hashes
=head1 VERSION
Maintainer: Nathan Torkington [EMAIL PROTECTED]
Date: 5 Sep 2000
Mailing List: [EMAIL PROTECTED]
Version: 1
Number: 196
=head1 ABSTRACT