Skip to content

Commit

Permalink
disallow set<a b c>
Browse files Browse the repository at this point in the history
A (beneficial?) side effect is that you may no longer say 'set'
to mean ∅.  You must say 'set()' instead.  Which is perhaps clearer...
  • Loading branch information
TimToady committed May 14, 2013
1 parent b33d8e0 commit e2a36d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions STD.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -4068,6 +4068,7 @@ grammar P6 is STD {
:WHAT(2), :WHICH(2), :WHERE(2), :HOW(2), :WHENCE(2), :WHO(2),
:VAR(2),
:any(2), :all(2), :none(2), :one(2),
:set(2), :bag(2),
);

# token term:funspace { <longname> \h* <?before '('> <args(0)> }
Expand Down Expand Up @@ -4102,6 +4103,7 @@ grammar P6 is STD {
$ok = 1 if $<args><semiarglist>;
if not $ok {
given +%deftrap{$name} {
.worry("Use of non-subscript <...> where postfix is expected; please use whitespace") if $_ and substr(self.orig, $¢.pos, 1) eq '<';
when 1 { # probably misused P5ism
$<identifier>.sorryobs("bare '$name'", ".$name if you meant \$_, or use an explicit invocant or argument");
}
Expand Down

0 comments on commit e2a36d8

Please sign in to comment.