Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-08 Thread Solomon Foster
On Sun, Nov 7, 2010 at 11:19 PM, Jon Lang datawea...@gmail.com wrote: Mason Kramer wrote: I'd like to anticipate one objection to this - the existence of the 'hyper' operator/keyword.  The hyper operator says, I am taking responsibility for this particular code block and promising that it

Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-08 Thread Jon Lang
Solomon Foster wrote: Well, hyperoperators work fine on Hashes, they operate on the values, paired up by key if needed.  (That is, %hash++ doesn't care about the keys, %hash1 + %hash2 sums based on keys.)  I would assume that Bag should work in the exact same way.  Dunno how Set should work

[perl6/specs] c96afc: Regex vars declarative iff declared constant

2010-11-08 Thread noreply
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: c96afc62b441672e5291aa8d2333e1a536b53a94 https://github.com/perl6/specs/commit/c96afc62b441672e5291aa8d2333e1a536b53a94 Author: TimToady la...@wall.org Date: 2010-11-08 (Mon, 08 Nov 2010) Changed paths: M

[perl6/specs] 8d7691: generics can produce constants without declarator

2010-11-08 Thread noreply
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 8d7691d201467a12a5110dff5533c5cf3c88a27f https://github.com/perl6/specs/commit/8d7691d201467a12a5110dff5533c5cf3c88a27f Author: TimToady la...@wall.org Date: 2010-11-08 (Mon, 08 Nov 2010) Changed paths: M

Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-08 Thread Mason Kramer
I'm honored that my letter generated so much activity, and thank you all for your thoughtful responses. I'd like to address a few points. On Monday, 8. November 2010 17:20:43 Jon Lang wrote: Solomon Foster wrote: Well, hyperoperators work fine on Hashes, they operate on the values, paired

Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-08 Thread Jon Lang
This is going to be a rambling answer, as I have a number of questions but no firm conclusions. Please bear with me. Mason Kramer wrote: Having Bags flatten in list context is pretty crucial to their being as easy and terse to use as arrays, because flattening is fundamental to how Arrays are