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

[email protected] (Bart Lateur) Fri, 08 Sep 2000 11:09:13 +0200
Newsgroups perl.perl6.language.data
Organization MediaMind
Message-ID <[email protected]>
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 were in %hash before? IMO, 'd' would be
removed, because it's not in the hash keys any more; but 'b'? Should
it's value be wiped, or remain what it was? I think it should be
preserved.

-- 
	Bart.