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
.[] doesn't cache a Seq #2383
Labels
Comments
zoffixznet
added a commit
that referenced
this issue
Oct 19, 2018
Make .[] cache the Seq. Closes #2383
|
Tests went in in Raku/roast@7d23fbc |
zoffixznet
added a commit
to Raku/doc
that referenced
this issue
Oct 19, 2018
Propspec: Raku/roast@7d23fbc PoV: rakudo/rakudo@b84b090 Closes rakudo/rakudo#2383 R#2383
zoffixznet
added a commit
that referenced
this issue
Oct 26, 2018
zoffixznet
added a commit
to Raku/doc
that referenced
this issue
Oct 26, 2018
The caching behaviour (R#2383[^1]) was reverted[^2][^3] and non-caching behaviour propspeced[^4] [1] rakudo/rakudo#2383 [2] rakudo/rakudo@2efffc2b43 [3] Raku/roast@5485affa47 [4] Raku/roast@f5f9ce0083
|
Turns out fixing this Issue introduced a different inconsistency: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Positional access on a
Seqcaches it. However, there's an edgecase where.[]doesn't cache it.On
List,.[]is a no-op and doesn't reify theList. I feel that the latter part can still apply toSeqs, but.[]should.cache, same as all other positional access would.The text was updated successfully, but these errors were encountered: