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

list_infix:<X> evaluates its RHS eagerly in Rakudo #2724

Closed
p6rt opened this issue Apr 24, 2012 · 5 comments
Closed

list_infix:<X> evaluates its RHS eagerly in Rakudo #2724

p6rt opened this issue Apr 24, 2012 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 24, 2012

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

Searchable as RT112602$

@p6rt
Copy link
Author

p6rt commented Apr 24, 2012

From @masak

<TimToady> flussence​: xx and X are lazy, but only on one side (though
for different reasons)
<TimToady> well, technically, X is lazy on both sides, but if you put
an infinite list on the right you'll never find the second value on
the left
<TimToady> perl6​: .say for 1..* X* 1..*
<p6eval> niecza v16-23-gaa61ed5​:
OUTPUT«(timeout)1␤2␤3␤4␤5␤6␤7␤8␤9␤10␤11␤12␤13␤14␤15␤16␤17␤18␤19␤20␤21␤22␤23␤24␤25␤26␤27␤28␤29␤30␤31␤32␤33␤34␤35␤36␤37␤38␤39␤40␤41␤42␤43␤44␤45␤46␤47␤48␤49␤50␤51␤52␤53␤54␤55␤56␤57␤58␤59␤60␤61␤62␤63␤64␤65␤66␤67␤68␤69␤70␤71␤72␤73␤74␤75␤76␤77␤78␤79␤8
<p6eval> ..rakudo 11c0ab​: OUTPUT«(timeout)»
<TimToady> ooh, rakudobug!
* masak submits it
<TimToady> it's evaluating the RHS eagerly
<TimToady> though the spec is perhaps misleading when it says "Only
the leftmost list may usefully be an infinite list."
<TimToady> $prefix X~ @​infinitelist is potentially useful

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

From @FROGGS

That seems to be fixed, probably by TimToady++'s patched in that area.

FROGGS m​: .say for 1..* X* 1..*
camelia rakudo-moar 866817​: OUTPUT«(timeout)1␤2␤3␤4␤5␤6␤7␤8␤9␤10␤11␤12␤13␤14␤15␤16␤17␤18␤19␤20␤21␤22␤23␤24␤25␤26␤27␤28␤29␤30␤31␤32␤33␤34␤35␤36␤37␤38␤39␤40␤41␤42␤43␤44␤45␤46␤47␤48␤49␤50␤51␤5…»

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

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

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

From @FROGGS

Passing test added​: Raku/roast@b76ede5e83

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

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

@p6rt p6rt closed this as completed Jul 19, 2014
@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