develooper Front page | perl.perl6.language | Postings from May 2001

Re: Apoc2 - <STDIN> concerns

From:
John Porter
Date:
May 7, 2001 13:33
Subject:
Re: Apoc2 - <STDIN> concerns
Message ID:
20010507163251.A15625@min.net
Uri Guttman wrote:
> what larry seems to want is qh() for quote hash. 
> 	%foo = qh( foo bar baz )
> is like
> 	%foo = ( foo => 1, bar => 1, baz => 1 )

Thank you for giving me a chance to drag out my favorite
soapbox again.  :-)

What is needed is better support for treating hashes as
sets.  We want to be able to say

	keys(%foo) = (... list of keys ...);

It is not sufficient to invent fancy syntaxes for the
RHS of this equation, because the RHS should be able
to be any list source.

Ref. my RFC that didn't make it in in time:

  http://www.min.net/~jdporter/setashash.html


-- 
John Porter

All men are subjects.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About