Skip to content

Commit 86b102f

Browse files
committed
Don't use Nil to mean () in error messages anymore
1 parent 692eb4f commit 86b102f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

STD.pm6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ token circumfix:sym«<< >>» { :dba('shell-quote words') '<<' ~ '>>' <nibble($¢
597597
token circumfix:sym«< >» { :dba('quote words') '<' ~ '>'
598598
[
599599
[ <?before 'STDIN>' > <.obs('<STDIN>', '$' ~ '*IN.lines (or add whitespace to suppress warning)')> ]? # XXX fake out gimme5
600-
[ <?before '>' > <.obs('<>', "lines() to read input,\n or ('') to represent the null string,\n or () to represent Nil")> ]?
600+
[ <?before '>' > <.obs('<>', "lines() to read input,\n or ('') to represent the null string,\n or () to represent the empty list")> ]?
601601
<nibble($¢.cursor_fresh( %*LANG<Q> ).tweak(:q).tweak(:w).balanced('<','>'))>
602602
]
603603
}
@@ -2112,7 +2112,7 @@ grammar P6 is STD {
21122112

21132113
token coloncircumfix ($front) {
21142114
[
2115-
| '<>' <.worry("Pair with <> really means a Nil value, not null string; use :$front" ~ "('') to represent the null string,\n or :$front" ~ "() to represent Nil more accurately")>
2115+
| '<>' <.worry("Pair with <> really means an empty list, not null string; use :$front" ~ "('') to represent the null string,\n or :$front" ~ "() to represent the empty list more accurately")>
21162116
| <circumfix>
21172117
]
21182118
}

0 commit comments

Comments
 (0)