Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infix:<~~> isn't chaining in Rakudo #2307

Closed
p6rt opened this issue Dec 27, 2010 · 6 comments
Closed

infix:<~~> isn't chaining in Rakudo #2307

p6rt opened this issue Dec 27, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 27, 2010

Migrated from rt.perl.org#81336 (status was 'resolved')

Searchable as RT81336$

@p6rt
Copy link
Author

p6rt commented Dec 27, 2010

From @masak

<masak> rakudo​: say 0 ~~ 0 ~~ 0
<p6eval> rakudo cae7f9​: OUTPUT«Bool​::False␤»
* masak submits rakudobug
<masak> just saw that ~~ is "chaining infix" :)
<masak> that surprises me. but hey, it's spec. :P
<moritz_> wtf?
<masak> I have *no* idea whatsoever how I would use the chainedness of ~~
<masak> of course, if ~~ is chaining, it can chain with *other*
operators. and that might be useful.
<masak> rakudo​: say "foo" ~~ "foo" ge "bar"
<p6eval> rakudo cae7f9​: OUTPUT«Bool​::False␤»
<masak> both of these evaluations should be "Bool​::True" according to the spec.

@p6rt
Copy link
Author

p6rt commented Aug 3, 2015

From @ShimmerFairy

The presented examples have been added to S03-operators/relational.t

From what I've looked at, this seems to be caused by ~~ being specially handled in rakudo; see #​125745 for another bug possibly caused by this.

@p6rt
Copy link
Author

p6rt commented Aug 3, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 10, 2015

From @TimToady

~~ is now chaining where it can be; it obviously makes little sense to chain something on both sides that is not a normal data value. So if you include a regex or a closure, it must be the final test. Also, in order
to get $a ~~ $b ~~ $c to work, we cannot topicalize $b.

Fix in f457007181bb6e2dcb6aefe857f36d648ae38401

Tests in cf080c9f958bc3153dde217b107c65ddb617afe6

1 similar comment
@p6rt
Copy link
Author

p6rt commented Dec 10, 2015

From @TimToady

~~ is now chaining where it can be; it obviously makes little sense to chain something on both sides that is not a normal data value. So if you include a regex or a closure, it must be the final test. Also, in order
to get $a ~~ $b ~~ $c to work, we cannot topicalize $b.

Fix in f457007181bb6e2dcb6aefe857f36d648ae38401

Tests in cf080c9f958bc3153dde217b107c65ddb617afe6

@p6rt
Copy link
Author

p6rt commented Dec 10, 2015

@TimToady - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Dec 10, 2015
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant