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

Binding does not "put into" #1378

Closed
Juerd opened this issue Jun 12, 2017 · 2 comments
Closed

Binding does not "put into" #1378

Juerd opened this issue Jun 12, 2017 · 2 comments
Labels
docs Documentation issue (primary issue type) update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc.

Comments

@Juerd
Copy link
Contributor

Juerd commented Jun 12, 2017

In https://docs.perl6.org/language/list, binding to an @-sigiled variable is described as "putting an actual List into an @-sigiled variable". It's descriptive, but seems semantically inaccurate. This could lead to a wrong understanding of any(lists, @-sigiled variables, binding).

On IRC, skids added: "Yeah, keeping the difference between containers and variables straight in the text is important. Maybe we should figure out which verbs to use consistently for which operation."

@coke coke added the docs Documentation issue (primary issue type) label Jun 12, 2017
@coke coke added the update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc. label Aug 26, 2017
@JJ JJ added the TPF Grant label Apr 7, 2018
@JJ
Copy link
Contributor

JJ commented Apr 7, 2018

Do we have that figured out or should I make my best guess?

@smls
Copy link
Contributor

smls commented Apr 7, 2018

Here is what I'd use.
(In the case of assignment, I'd differentiate between item assignment and list assignment.)


my $a = (1, 2, 3);

— It assigns the List object to the item variable $a.
— It places the List object into the item variable $a.


my @a = (1, 2, 3);

— It assigns the List object to the array variable @a.
— It fills the existing Array object with the values from the given List object .


my $a := (1, 2, 3);
my @a := (1, 2, 3);

— It binds the List object to the variable name $a (or @a).
— It makes the name $a (or @a) refer directly to the given List object.
— It makes the name $a (or @a) a lexical alias for the given List object.

@JJ JJ removed the JJ TPF Grant label May 14, 2018
@JJ JJ closed this as completed in 8d11b5f May 21, 2018
Kaiepi pushed a commit to Kaiepi/doc that referenced this issue May 22, 2018
It limits itself to the problem pointed out in the OP, so this should
close Raku#1378.

The terminology suggested by @smls is great, but it might be better to
open some issues to pages where it's not well expressed.
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) update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc.
Projects
None yet
Development

No branches or pull requests

4 participants