Browse files

Don't use Nil to mean () in error messages anymore

  • Loading branch information...
1 parent 692eb4f commit 86b102f40c0dcf0055c2da6fc6a484eadfc1b182 @TimToady TimToady committed Mar 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 STD.pm6
View
4 STD.pm6
@@ -597,7 +597,7 @@ token circumfix:sym«<< >>» { :dba('shell-quote words') '<<' ~ '>>' <nibble($¢
token circumfix:sym«< >» { :dba('quote words') '<' ~ '>'
[
[ <?before 'STDIN>' > <.obs('<STDIN>', '$' ~ '*IN.lines (or add whitespace to suppress warning)')> ]? # XXX fake out gimme5
- [ <?before '>' > <.obs('<>', "lines() to read input,\n or ('') to represent the null string,\n or () to represent Nil")> ]?
+ [ <?before '>' > <.obs('<>', "lines() to read input,\n or ('') to represent the null string,\n or () to represent the empty list")> ]?
<nibble($¢.cursor_fresh( %*LANG<Q> ).tweak(:q).tweak(:w).balanced('<','>'))>
]
}
@@ -2112,7 +2112,7 @@ grammar P6 is STD {
token coloncircumfix ($front) {
[
- | '<>' <.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")>
+ | '<>' <.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")>
| <circumfix>
]
}

0 comments on commit 86b102f

Please sign in to comment.