Skip to content

Commit 8d11b5f

Browse files
committed
Changes phrasing for description of binding
It limits itself to the problem pointed out in the OP, so this should close #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.
1 parent 343c127 commit 8d11b5f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/Language/list.pod6

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,19 @@ also contain these objects, but C<@>-sigiled variables always do, and
8585
are expected to act the part.
8686
8787
By default, when you assign a C<List> to an C<@>-sigiled variable, you create
88-
an C<Array>. Those are described below. If, instead you want to put an actual
89-
C<List> into an C<@>-sigiled variable, you can use binding with C<:=> instead.
88+
an C<Array>. Those are described below. If instead you want to refer directly to a
89+
C<List> object using an C<@>-sigiled variable, you can use binding with C<:=> instead.
9090
9191
my @a := 1, 2, 3;
9292
9393
One of the ways C<@>-sigiled variables act like lists is by always supporting
9494
L<positional subscripting|/language/subscripts>. Anything bound to a C<@>-sigiled
95-
value must support the L<Positional|/type/Positional> role which guarantees this:
95+
value must support the L<Positional|/type/Positional> role which guarantees that this is going to fail:
9696
9797
my @a := 1; # Type check failed in binding; expected Positional but got Int
9898
99+
100+
99101
=head1 Reset a List Container
100102
101103
To remove all elements from a Positional container assign

0 commit comments

Comments
 (0)