@@ -389,7 +389,7 @@ method unitstop ($stop) { self.mixin( ::unitstop[$stop] ); }
389
389
390
390
method truly ($ bool ,$ opt ) {
391
391
return self if $ bool ;
392
- self . sorry(" Can't negate $ opt adverb" );
392
+ self . sorry(" Cannot negate $ opt adverb" );
393
393
self ;
394
394
}
395
395
@@ -2366,7 +2366,7 @@ grammar P6 is STD {
2366
2366
token desigilname {
2367
2367
[
2368
2368
| <? before '$' >
2369
- [ <?{ $ * IN_DECL }> <.panic : "Can't declare an indirect variable name" > ]?
2369
+ [ <?{ $ * IN_DECL }> <.panic : "Cannot declare an indirect variable name" > ]?
2370
2370
<variable > {
2371
2371
$ * VAR = $ < variable > ;
2372
2372
self . check_variable($ * VAR ) if substr ($ * VAR ,1 ,1 ) ne ' $' ;
@@ -2397,10 +2397,10 @@ grammar P6 is STD {
2397
2397
|| [
2398
2398
| <sigil > <twigil >? <desigilname > { $ name = $ < desigilname > . Str }
2399
2399
| <special_variable >
2400
- | <sigil > <index = .decint > [<?{ $ * IN_DECL }> <.panic : "Can't declare a numeric variable" >]?
2400
+ | <sigil > <index = .decint > [<?{ $ * IN_DECL }> <.panic : "Cannot declare a numeric variable" >]?
2401
2401
# Note: $() can also parse as contextualizer in an expression; should have same effect
2402
- | <sigil > <? before '<' > <postcircumfix > [<?{ $ * IN_DECL }> <.panic : "Can't declare a match variable" >]?
2403
- | <sigil > <? before '(' > <postcircumfix > [<?{ $ * IN_DECL }> <.panic : "Can't declare a contextualizer" >]?
2402
+ | <sigil > <? before '<' > <postcircumfix > [<?{ $ * IN_DECL }> <.panic : "Cannot declare a match variable" >]?
2403
+ | <sigil > <? before '(' > <postcircumfix > [<?{ $ * IN_DECL }> <.panic : "Cannot declare a contextualizer" >]?
2404
2404
| <sigil > <?{ $ * IN_DECL }>
2405
2405
| <?> {
2406
2406
if $ * QSIGIL {
@@ -2834,7 +2834,7 @@ grammar P6 is STD {
2834
2834
2835
2835
# ordinary parameter name
2836
2836
|| <name = .identifier >
2837
- || <name = .decint > <.panic : "Can't declare a numeric parameter" >
2837
+ || <name = .decint > <.panic : "Cannot declare a numeric parameter" >
2838
2838
|| $ < name > = [<[ /! ] >]
2839
2839
2840
2840
# bare sigil?
@@ -2923,15 +2923,15 @@ grammar P6 is STD {
2923
2923
[
2924
2924
<default_value > {
2925
2925
given $ quant {
2926
- when ' !' { $¢. sorry(" Can't put a default on a required parameter" ) }
2927
- when ' *' { $¢. sorry(" Can't put a default on a slurpy parameter" ) }
2928
- when ' **' { $¢. sorry(" Can't put a default on a slice parameter" ) }
2929
- when ' |' { $¢. sorry(" Can't put a default on an slurpy capture parameter" ) }
2930
- when ' \\ ' { $¢. sorry(" Can't put a default on a capture parameter" ) }
2926
+ when ' !' { $¢. sorry(" Cannot put a default on a required parameter" ) }
2927
+ when ' *' { $¢. sorry(" Cannot put a default on a slurpy parameter" ) }
2928
+ when ' **' { $¢. sorry(" Cannot put a default on a slice parameter" ) }
2929
+ when ' |' { $¢. sorry(" Cannot put a default on an slurpy capture parameter" ) }
2930
+ when ' \\ ' { $¢. sorry(" Cannot put a default on a capture parameter" ) }
2931
2931
}
2932
2932
$ kind = ' ?' if $ kind eq ' !' ;
2933
2933
}
2934
- [<? before ':' > <.sorry : "Can't put a default on the invocant parameter" >]?
2934
+ [<? before ':' > <.sorry : "Cannot put a default on the invocant parameter" >]?
2935
2935
[<! before <[ ,;)\] \{\- ] > > <.sorry : "Default expression must come last" >]?
2936
2936
]?
2937
2937
[<? before ':' > <?{ $ kind ne ' !' }> <.sorry : "Invocant is too exotic" >]?
@@ -2945,18 +2945,18 @@ grammar P6 is STD {
2945
2945
when ' !' {
2946
2946
given $ * zone {
2947
2947
when ' posopt' {
2948
- $¢. sorry(" Can't put required parameter after optional parameters" );
2948
+ $¢. sorry(" Cannot put required parameter after optional parameters" );
2949
2949
}
2950
2950
when ' var' {
2951
- $¢. sorry(" Can't put required parameter after variadic parameters" );
2951
+ $¢. sorry(" Cannot put required parameter after variadic parameters" );
2952
2952
}
2953
2953
}
2954
2954
}
2955
2955
when ' ?' {
2956
2956
given $ * zone {
2957
2957
when ' posreq' { $ * zone = ' posopt' }
2958
2958
when ' var' {
2959
- $¢. sorry(" Can't put optional positional parameter after variadic parameters" );
2959
+ $¢. sorry(" Cannot put optional positional parameter after variadic parameters" );
2960
2960
}
2961
2961
}
2962
2962
}
@@ -3210,7 +3210,7 @@ grammar P6 is STD {
3210
3210
3211
3211
method can_meta ($ op , $ meta ) {
3212
3212
! $ op <O ><fiddly > ||
3213
- self . sorry(" Can't " ~ $ meta ~ " " ~ $ op <sym > ~ " because " ~ $ op <O ><dba > ~ " operators are too fiddly" );
3213
+ self . sorry(" Cannot " ~ $ meta ~ " " ~ $ op <sym > ~ " because " ~ $ op <O ><dba > ~ " operators are too fiddly" );
3214
3214
self ;
3215
3215
}
3216
3216
@@ -3234,7 +3234,7 @@ grammar P6 is STD {
3234
3234
[
3235
3235
|| <!{ $ op <O ><diffy > }>
3236
3236
|| <?{ $ op <O ><assoc > eq ' chain' }>
3237
- || <.sorry (" Can't reduce with " ~ $ op <sym > ~ " because " ~ $ op <O ><dba > ~ " operators are diffy and not chaining" )>
3237
+ || <.sorry (" Cannot reduce with " ~ $ op <sym > ~ " because " ~ $ op <O ><dba > ~ " operators are diffy and not chaining" )>
3238
3238
]
3239
3239
3240
3240
<O ($ op . Opairs, | % list_prefix , assoc => ' unary' , uassoc => ' left' )>
@@ -3262,7 +3262,7 @@ grammar P6 is STD {
3262
3262
<?{ $ < infixish >< O >< iffy > }>
3263
3263
$ < O > = { $ < infixish >< O > }
3264
3264
3265
- || <.panic (" Can't negate " ~ $ < infixish > . Str ~ " because " ~ $ < infixish >< O >< dba > ~ " operators are not iffy enough" )>
3265
+ || <.panic (" Cannot negate " ~ $ < infixish > . Str ~ " because " ~ $ < infixish >< O >< dba > ~ " operators are not iffy enough" )>
3266
3266
]
3267
3267
}
3268
3268
@@ -3320,7 +3320,7 @@ grammar P6 is STD {
3320
3320
:my % prec ;
3321
3321
'='
3322
3322
<.can_meta ($ op , " make assignment out of" )>
3323
- [ <!{ $ op <O ><diffy > }> || <.sorry (" Can't make assignment out of " ~ $ op <sym > ~ " because " ~ $ op <O ><dba > ~ " operators are diffy" )> ]
3323
+ [ <!{ $ op <O ><diffy > }> || <.sorry (" Cannot make assignment out of " ~ $ op <sym > ~ " because " ~ $ op <O ><dba > ~ " operators are diffy" )> ]
3324
3324
{
3325
3325
$ < sym > = $ op <sym > ~ ' =' ;
3326
3326
if $ op <O ><prec > gt % comma <prec > {
@@ -4773,7 +4773,7 @@ grammar Regex is STD {
4773
4773
<atom >
4774
4774
[ <normspace >? <quantifier > ]?
4775
4775
# <?{ $<atom>.max_width }>
4776
- # || <.panic: "Can't quantify zero-width atom">
4776
+ # || <.panic: "Cannot quantify zero-width atom">
4777
4777
}
4778
4778
4779
4779
token atom {
@@ -5352,9 +5352,9 @@ method add_name ($name) {
5352
5352
self . deb(" Adding $ scope $ name" ) if $ * DEBUG +& DEBUG::symtab;
5353
5353
if $ scope eq ' augment' or $ scope eq ' supersede' {
5354
5354
self . is_name($ name ) or
5355
- self . worry(" Can't $ scope $ pkgdecl $ name because it doesn't exist" );
5355
+ self . worry(" Cannot $ scope $ pkgdecl $ name because it doesn't exist" );
5356
5356
$ * MONKEY_TYPING or
5357
- self . sorry(" Can't $ scope $ pkgdecl $ name without MONKEY_TYPING" );
5357
+ self . sorry(" Cannot $ scope $ pkgdecl $ name without MONKEY_TYPING" );
5358
5358
}
5359
5359
else {
5360
5360
if $ scope eq ' our' {
0 commit comments