Closed zc1036 closed 3 years ago
CL-USER> (defun fn (x)
(match x
(#.(make-array 3 :adjustable t :initial-contents "abc" :element-type 'character) 'yes)
(_ 'no)))
FN
CL-USER> (fn (make-array 3 :adjustable t :initial-contents "abc" :element-type 'character))
YES
Trivia does not think that a vector of characters matches a string, even though
STRING=
says they're equal. This behavior is counter-intuitive. For example:What would you guys think about changing this behavior so that
VEC
matches"abc"
?