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

feeds don't correctly append to an argument list anymore #4629

Open
p6rt opened this issue Oct 8, 2015 · 3 comments
Open

feeds don't correctly append to an argument list anymore #4629

p6rt opened this issue Oct 8, 2015 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 8, 2015

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

Searchable as RT126292$

@p6rt
Copy link
Author

p6rt commented Oct 8, 2015

From @TimToady

p6 'say map { $_ * 2 } <== 1 ... 10'
()(1 2 3 4 5 6 7 8 9 10)
p6 'say map { $_ * 2 },0 <== 1 ... 10'
(0)(1 2 3 4 5 6 7 8 9 10)

@p6rt
Copy link
Author

p6rt commented Oct 8, 2015

From @TimToady

Whoops, posted the wrong examples. These actually show the difficulty​:

p6 'say() <== map { $_ * 2 } <== 1...10'
(2 4 6 8 10 12 14 16 18 20)
p6 'say() <== map { $_ * 2 },0 <== 1...10'
(0 20)

So this really looks like an insidious case of accidental one-arg semantics.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 8, 2015

From @TimToady

Whoops, posted the wrong examples. These actually show the difficulty​:

p6 'say() <== map { $_ * 2 } <== 1...10'
(2 4 6 8 10 12 14 16 18 20)
p6 'say() <== map { $_ * 2 },0 <== 1...10'
(0 20)

So this really looks like an insidious case of accidental one-arg semantics.

@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