Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't bother calling .gist for Strings
  • Loading branch information
lizmat committed Jun 16, 2014
1 parent aaa82dd commit 6e0ac15
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/core/IO.pm
Expand Up @@ -8,10 +8,8 @@ sub print(|) {
}

proto sub say(|) { * }
multi sub say(\x) {
my $out := $*OUT;
$out.print(x.gist, "\n");
}
multi sub say(Str:D \x) { $*OUT.print(x, "\n") }
multi sub say(\x) { $*OUT.print(x.gist, "\n") }
multi sub say(|) {
my $args := nqp::p6argvmarray();
my $out := $*OUT;
Expand All @@ -20,10 +18,8 @@ multi sub say(|) {
}

proto sub note(|) { * }
multi sub note(\x) {
my $err := $*ERR;
$err.print(x.gist, "\n");
}
multi sub note(Str:D \x) { $*ERR.print(x, "\n") }
multi sub note(\x) { $*ERR.print(x.gist, "\n") }
multi sub note(|) {
my $args := nqp::p6argvmarray();
my $err := $*ERR;
Expand Down

0 comments on commit 6e0ac15

Please sign in to comment.