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
+@a/+a slurpies produce inconsistent results #1355
Comments
|
Here's the behavior that I think would be most useful, in particular taking into account the concerns of issue #1398:
1) I.e. preserve the argument as it is. This way,
As for |
Note that doing so would create inconsistency with how |
Partially fixes R#1344 #1344 Since (per discussion on the Issue) a Seq is not a "list", the .list/.cache methods need to return a Positional. This commit is required for the grant to have proper coersion+typecheck on `@`-sigilled constants. The rest of the Issue still requires filling in the gaps in positional slurpy semantics ( R#1355 #1355 )
The
+aand+@a is rawslurpies look equivalent, however, anyway I slice it, I see results as inconsistent:raw, why is it convertingArraytoList?raw, why is it convertingListtoArray, but convertsSeqtoList?Seqin a@-sigiled param, since it's notPositionaland it'salso uncached, which could lead to surprising bugs where trying to work with a
@foomakes itexplode with errors about consumed
Seqs(originally reported in RT#131483)What's the correct behaviour here? This affects some core routines, like
&list(#1344), which makes speccing their behaviour difficult.Code used to make the chart:
The text was updated successfully, but these errors were encountered: