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