Summary

condition-predicate's result is too picky

Metadata

Description

The result of `(condition-predicate 'foo)` is documented] to accept any argument and return `#t` iff it is a condition of kind `foo`. In fact, if its argument is not a condition, it raises an exception.

This can be resolved by a doc fix or a code fix. Since basic predicates generally accept any object, I think these should too.

Changes and comments

[2011-10-03 10:32:48 UTC] ckeen changed status from new to closed

[2011-10-03 10:32:48 UTC] ckeen set resolution to fixed

[2011-10-03 10:32:48 UTC] ckeen wrote:

The code has been fixed to return #t only if the condition kind is matched #f on all other arguments. Comitted in master with commit fcff2bc347a95259907de78e019cf70252e31d49

[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0

[2012-09-24 21:47:48 UTC] felix wrote:

Milestone 4.8.0 deleted