In my opinion, the most consistent approach is to disallow any
autothreading of the argument to .ACCEPTS, such that 3.ACCEPTS(any(3,4))
simply returns False. I suspect the only thing that returns True for
that sort of argument is Junction.ACCEPTS(any(3,4)) and such. And we
can't autothread that,
Thanks for the explanation, I think the docs (and Roast) also can be more
explicit on the difference between
$left ~~ $right
and
$right.ACCEPTS($left)
and
given ($left) { when $right { ... } }
and
... when $right;
ralph-if you are reading this, last week you went into detail about
On Sun, May 30, 2021 at 10:18:13PM -0400, yary wrote:
: This came up in today's Raku study group (my own golfing-)
:
: > ? (any(4,3) ~~ 3)
: True
: > ? (3 ~~ any(4,3))
: True
: > given any(4,3) { when 3 {say '3'}; say 'nope'}
: nope
: > given 3 { when any(4,3) {say '3'}; say 'nope'}
: 3
: > given
Nice checking! I opened https://github.com/rakudo/rakudo/issues/4386
-y
On Mon, May 31, 2021 at 3:45 AM Bruce Gray
wrote:
>
>
> > On May 30, 2021, at 9:18 PM, yary wrote:
> >
> > This came up in today's Raku study group (my own golfing-)
> >
> > > ? (any(4,3) ~~ 3)
> > True
> > > ? (3 ~~ any(4
Good day Rakoons,
As you may have already heard, the Raku IRC channels have moved from Freenode
to Libera. I've written a small blog post about this[1], but not everyone may
have seen it. As such, I'm also writing on the mailing list to spread the word.
Additionally, some module authors may have
> On May 30, 2021, at 9:18 PM, yary wrote:
>
> This came up in today's Raku study group (my own golfing-)
>
> > ? (any(4,3) ~~ 3)
> True
> > ? (3 ~~ any(4,3))
> True
> > given any(4,3) { when 3 {say '3'}; say 'nope'}
> nope
> > given 3 { when any(4,3) {say '3'}; say 'nope'}
> 3
> > given any(