Summary

match from matchable doesn't handle keywords properly

Metadata

Description

`(match '(#:key 1) x) x)` matches and returns `1`, whereas I would expect keywords to be self evaluating and therefore throw a match error.

And this throws a match error, not sure why: `(match '(#:key #:key) #:foo) "here")`. Again the expected behavior would be a match error.

As a last example: `(match '(#:key) 1 2)` should return `2` but returns `1`.

Changes and comments

[2016-10-04 21:32:27 UTC] xificurC wrote:

For the second example - I meant to say I think it should throw a match error but with the current behavior in place I don't understand why it doesn't match.

[2016-10-05 07:47:04 UTC] mario changed status from new to assigned

[2016-10-05 07:47:04 UTC] mario set owner to ashinn

[2016-10-05 16:21:49 UTC] ashinn changed status from assigned to closed

[2016-10-05 16:21:49 UTC] ashinn set resolution to fixed