Closed tgk closed 13 years ago
The problem is in matchure.compile
where the expression (.isArray (class ~matching-name))
will fail on a nil
expression, as the class of nil
is nil
, and nil
does not have .isArray
.
Sorry, duplicate issue, see comment by Storkle.
It is not possible to (unsuccessfully) match a nested expression against a nil. The following will fail in the current version of matchure
(if-match [[?a] nil] true)
but the following will successfully return
nil
(if-match [[?a] :foo] true)