Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make Mu.Bool about 10x faster
- remove | from proto sig
- replace Mu: candidate with 2 candidates, :D for True, :U for False
  • Loading branch information
lizmat committed Mar 18, 2016
1 parent 57df3dd commit 24b4b23
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/Mu.pm
Expand Up @@ -80,10 +80,9 @@ Please refactor this code using the new Iterator / Seq interface.
self.HOW.set_why($why);
}

proto method Bool(|) {*}
multi method Bool() {
self.defined
}
proto method Bool() {*}
multi method Bool(Mu:U: --> False) { }
multi method Bool(Mu:D: --> True) { }

method so() { self.Bool }
method not() { self ?? False !! True }
Expand Down

0 comments on commit 24b4b23

Please sign in to comment.