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

slip()'s flavour of slurpiness #4864

Open
p6rt opened this issue Dec 13, 2015 · 1 comment
Open

slip()'s flavour of slurpiness #4864

p6rt opened this issue Dec 13, 2015 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 13, 2015

Migrated from rt.perl.org#126903 (status was 'new')

Searchable as RT126903$

@p6rt
Copy link
Author

p6rt commented Dec 13, 2015

From zefram@fysh.org

doc/doc/Type/Slip.pod says​:

  =head2 sub slip

  sub slip(*@​) returns Slip​:D

  Creates a L<Slip|/type/Slip> from its arguments.

rakudo/src/core/Slip.pm has​:

  multi slip(+args) { args.Slip }

Is the slurpy parameter meant to be of flattening or one-arg form?
This makes a difference in cases such as slip(11,[22,33]). (To my mind
it should be of slicing form, on least-surprise grounds. Either kind of
flattening is liable to be a surprise, as demonstrated by [perl #​126902].)

-zefram

@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