Skip to content

Commit

Permalink
Remove untested, experimental, Promise coercions.
Browse files Browse the repository at this point in the history
Coercions are a bad thing to have block. Promise.new ~~ SomeEnumValue
would hang as a result of the Numeric one, due to the numeric coercion
performed by the ACCEPTS of the enum value, for example.
  • Loading branch information
jnthn committed Sep 28, 2016
1 parent 5f91031 commit 2673ca8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/Promise.pm
Expand Up @@ -218,10 +218,6 @@ my class Promise {
});
}
}

# experimental
method Str(Promise:D:) { self.result.Str }
method Numeric(Promise:D:) { self.result.Numeric }
}

multi sub infix:<eqv>(Promise:D \a, Promise:D \b) {
Expand Down

0 comments on commit 2673ca8

Please sign in to comment.