Incorrect declared return type for pathname-match-p
Describe the bug
It appears that we have declared the wrong return type for pathname-match-p
.
To Reproduce
Steps to reproduce the behavior:
- `(describe 'pathname-match-p)
- See that the result type is
(MEMBER T NIL)
- See CLHS
pathname-match-p
which says the value is a generalized boolean - We do return the pathname from
pathname-match-p
as a generalized true instead of T.
Desktop (please complete the following information):
- OS: All
- Version: snapshot-2021-07
Additional context
Not sure this causes any real issues, but I think the return value
should be (OR NULL PATHNAME)
or something similiar. Or modify
pathname-match-p
to return just NIL
and T
. This is what ccl and
ecl do.