Re: RFC 196 (v1) More direct syntax for hashes

2000-09-11 Thread Dave Storrs
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

Re: RFC 196 (v1) More direct syntax for hashes

2000-09-08 Thread Bart Lateur
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

Re: RFC 196 (v1) More direct syntax for hashes

2000-09-07 Thread Michael G Schwern
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.

Re: RFC 196 (v1) More direct syntax for hashes

2000-09-07 Thread Nathan Torkington
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

Re: RFC 196 (v1) More direct syntax for hashes

2000-09-07 Thread Michael G Schwern
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.

Re: RFC 196 (v1) More direct syntax for hashes

2000-09-07 Thread Nathan Torkington
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

RFC 196 (v1) More direct syntax for hashes

2000-09-06 Thread Perl6 RFC Librarian
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