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
Nested indexing semantics changed from Beijing to nom in Rakudo #2471
Comments
From @masak<masak> b: my @a = [1], [2], [3]; say (map { @a[1 - $_][0] }, 0 .. 3).perl Does the spec say that one should get Nil in this case? I was fine |
From @masakOn Mon Sep 12 15:04:09 2011, masak wrote:
These days, it fails. <masak> rn: my @a = [1], [2], [3]; say (map { @a[1 - $_][0] }, 0 .. Which is arguably more correct than silently truncating the result list. |
@masak - Status changed from 'new' to 'open' |
From @pmichaudOn Thu, Sep 12, 2013 at 11:48:02AM -0700, Carl Mäsak via RT wrote:
S09:683 says that "Negative subscripts are never allowed for standard I know S09 is slushy, but afair once the whatever star notation was Pm |
From @usev6The typed exception has changed and AFAIU the current behaviour is correct (cmp. also ticket 111924) : $ perl6 -e 'my @a = [1], [2], [3]; say (map { @a[1 - $_][0] }, 0 .. 3).perl' I added a test to S02-types/nested_arrays.t with commit Raku/roast@1ecd460c8e. I'm closing this ticket now. |
1 similar comment
From @usev6The typed exception has changed and AFAIU the current behaviour is correct (cmp. also ticket 111924) : $ perl6 -e 'my @a = [1], [2], [3]; say (map { @a[1 - $_][0] }, 0 .. 3).perl' I added a test to S02-types/nested_arrays.t with commit Raku/roast@1ecd460c8e. I'm closing this ticket now. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#98954 (status was 'resolved')
Searchable as RT98954$
The text was updated successfully, but these errors were encountered: