On Mon, Jan 08, 2007 at 06:05:10PM +0100, TSa wrote:
: HaloO,
:
: Larry Wall wrote:
: >On Sun, Jan 07, 2007 at 11:42:05AM +, Luke Palmer wrote:
: >: >+Hash Set hash keys same set $_.keys === $x
: >:
: >: You can either think of a hash as a set of pairs, or you can just
: >
HaloO,
Larry Wall wrote:
On Sun, Jan 07, 2007 at 11:42:05AM +, Luke Palmer wrote:
: >+Hash Set hash keys same set $_.keys === $x
:
: You can either think of a hash as a set of pairs, or you can just
: project to a set of its keys. As long as we're consistent about goin
On Sun, Jan 07, 2007 at 11:42:05AM +, Luke Palmer wrote:
: >+Any .foo method truth?any($_.foo)
:
: So... why the any() ? (0,"",undef,0) should be considered false?
Just trying to carry the "intersection" idea through to a method that
might return a list of things.
On 1/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote
Author: larry
Date: Sun Jan 7 00:50:30 2007
New Revision: 13515
Modified:
doc/trunk/design/syn/S03.pod
+$_$xType of Match Implied Match if
+=== = =
+Any
On Sun, Jan 07, 2007 at 12:50:32AM -0800, [EMAIL PROTECTED] wrote:
> +Num Num numeric equality+$_ == $x
I don't think that you need that plus sign ^
You don't write ~ for the analogous Str/Str case below:
> +Capture Num numeric equality+$_ == $
Author: larry
Date: Sun Jan 7 00:50:30 2007
New Revision: 13515
Modified:
doc/trunk/design/syn/S03.pod
Log:
Smartmatching is now hopefully more consistent, extensible, and optimizable.
(Suggestion to use single dispatch semantics on pattern was from luqui++.)
After single dispatch, pattern ca