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

Expand “Containers versus values” trap #1216

Closed
AlexDaniel opened this issue Feb 24, 2017 · 2 comments
Closed

Expand “Containers versus values” trap #1216

AlexDaniel opened this issue Feb 24, 2017 · 2 comments
Labels
docs Documentation issue (primary issue type) trap

Comments

@AlexDaniel
Copy link
Member

See this discussion: https://irclog.perlgeek.de/perl6/2017-02-24#i_14160027

We already have something here: https://docs.perl6.org/language/traps#Containers_versus_values_in_a_Capture

But let's add @a.push: ($a, $b) there as well, because on the first sight it looks very innocent indeed.

Also, the section talks about Captures, but I'm not sure what this is about. ($a, ++$a) itself is a List, so where's a capture in the given example?

@zoffixznet
Copy link
Contributor

Can be useful to mention this on https://docs.perl6.org/language/containers instead/too.

@coke coke added the docs Documentation issue (primary issue type) label Mar 6, 2017
@JJ
Copy link
Contributor

JJ commented May 13, 2018

@AlexDaniel if it's a List, it's been created through calling its initialization routine, so it becomes a capture somewhere, right?

@JJ JJ closed this as completed in b33402c May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type) trap
Projects
None yet
Development

No branches or pull requests

5 participants
@JJ @coke @AlexDaniel @zoffixznet and others