Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Eliminates the interrobang closes #2163
  • Loading branch information
JJ committed Jul 9, 2018
1 parent bb2e323 commit 93af3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Sub.pod6
Expand Up @@ -38,9 +38,9 @@ Note that subs that go by the same name as
L<coercers|/language/typesystem#Coercion> will not take precedence over
coercers. To call them use the C<&>-sigil.
sub Int(Str $s){'oi‽'};
sub Int(Str $s){'what?'};
say [Int, Int('42'),&Int('42')];
# OUTPUT: «[(Int) 42 oi‽]␤»
# OUTPUT: «[(Int) 42 what?]␤»
X<|my (Sub)>X<|our (Sub)>
Subs can be nested and scoped with C<my> and C<our>, whereby C<my> is the
Expand Down

2 comments on commit 93af3ea

@zoffixznet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW there's plenty of other instances:

$ G '‽' doc/
doc/Type/Sub.pod6:41:    sub Int(Str $s){'oi‽'};
doc/Type/Sub.pod6:43:    # OUTPUT: «[(Int) 42 oi‽]␤»
doc/Type/Sub.pod6:67:    sub bar() is foo<oi‽> {
doc/Type/Sub.pod6:71:    # OUTPUT: «⟨is foo⟩ has been called with ⟨oi‽⟩ on Sub|47563000␤start␤bar has been called␤»
doc/Type/List.pod6:258:        say 'oi‽' # dead code
doc/Language/functions.pod6:48:    sub ::(aname) { say 'oi‽' };
doc/Language/modules.pod6:119:    mmk('oi‽'); # OUTPUT: «ok 1 - ␤»
doc/Language/traps.pod6:846:my %h = V => 'oi‽', ::V => 42;
doc/Language/traps.pod6:848:# OUTPUT: «{:V("oi‽"), :x(42)}␤»
doc/Language/traps.pod6:1749:say ‘Huh‽’     if %h<x y>:exists; # ← WRONG; returns a 2-item list
doc/Language/typesystem.pod6:96:        method this-is-c { put 'oi' x $!int ~ '‽' }
doc/Language/typesystem.pod6:107:    # OUTPUT: «oioioioioioioioioioi‽␤»
doc/Language/typesystem.pod6:164:    role R { method m { say 'oi‽' } }
doc/Language/typesystem.pod6:169:    # OUTPUT: «oi‽␤[True True]␤»
doc/Language/typesystem.pod6:575:    role R { method m { say 'oi‽' } };

Also, if "oi" is being removed because it's silly or whatever, I've used "meow" in a bunch of places, in case that needs to be changed too:

$ G 'meow' doc/
doc/Type/Junction.pod6:54:    say    %h{one <foo meow>}:exists; # OUTPUT: «one(True, False)␤»
doc/Type/Junction.pod6:55:    say so %h{one <foo meow>}:exists; # OUTPUT: «True␤»
doc/Type/IO/CatHandle.pod6:167:(my $f2 = 'bar'.IO).spurt: 'meow';
doc/Type/IO/CatHandle.pod6:244:(my $f2 = 'bar'.IO).spurt: 'meow';
doc/Type/IO/CatHandle.pod6:304:(my $f2 = 'bar'.IO).spurt: 'meow';
doc/Type/IO/CatHandle.pod6:306:# OUTPUT: «("foo", "bar", "meow").Seq␤»
doc/Type/IO/CatHandle.pod6:524:(my $f1 = 'foo'.IO).spurt: 'meow';
doc/Type/IO/CatHandle.pod6:533:    say .get;        # OUTPUT: «meow␤»
doc/Type/IO/CatHandle.pod6:552:(my $f2 = 'bar'.IO).spurt: ' meow';
doc/Type/IO/CatHandle.pod6:556:    say .readchars: 1000; # OUTPUT: «to meow␤»
doc/Type/IO/CatHandle.pod6:734:(my $f2 = 'bar'.IO).spurt: 'meow';
doc/Type/IO/CatHandle.pod6:736:# OUTPUT: «("foo", "bar", "meow").Seq␤»
doc/Type/IO/Path.pod6:142:    "foo/bar".IO.add("meow")    .resolve.relative.say; # OUTPUT: «foo/bar/meow␤»
doc/Type/IO/Path.pod6:143:    "foo/bar".IO.add("/meow")   .resolve.relative.say; # OUTPUT: «foo/bar/meow␤»
doc/Type/IO/Path.pod6:144:    "foo/bar".IO.add("meow.txt").resolve.relative.say; # OUTPUT: «foo/bar/meow.txt␤»
doc/Type/IO/Path.pod6:145:    "foo/bar".IO.add("../meow") .resolve.relative.say; # OUTPUT: «foo/meow␤»
doc/Type/IO/Path.pod6:858:That is, C<mkdir "foo/bar/ber/meow"> will create C<foo>, C<foo/bar>, and C<foo/bar/ber>
doc/Type/IO.pod6:24:Also creates parent directories, as needed (similar to *nix utility C<mkdir> with C<-p> option); that is, C<mkdir "foo/bar/ber/meow"> will create C<foo>, C<foo/bar>, and C<foo/bar/ber>
doc/Type/IO.pod6:25:directories if they do not exist, as well as C<foo/bar/ber/meow>.
doc/Language/operators.pod6:2546:    sub meows { ++$ < 4 ?? fail 'out of meows!' !! '🐱' }
doc/Language/operators.pod6:2548:    sub meows-processor1 { meows() orelse .return } # return handled Failure
doc/Language/operators.pod6:2549:    sub meows-processor2 { meows() orelse fail $_ } # return re-armed Failure
doc/Language/operators.pod6:2550:    sub meows-processor3 {
doc/Language/operators.pod6:2552:        meows() andthen .say orelse ‘something's wrong’.say;
doc/Language/operators.pod6:2556:        given meows-processor1;
doc/Language/operators.pod6:2558:        given meows-processor2;
doc/Language/operators.pod6:2559:    meows-processor3;           # OUTPUT: «something's wrong␤»
doc/Language/operators.pod6:2560:    meows-processor3;           # OUTPUT: «🐱␤»

@JJ
Copy link
Contributor Author

@JJ JJ commented on 93af3ea Jul 9, 2018 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.