Closed Ambrevar closed 1 year ago
expand has this signature:
expand
(-> expand (file) (values pathname &optional))
But resolve can return anything. Note that we have this :around method:
resolve
:around
(defmethod resolve :around ((profile profile) (file file)) "Clean up the result before returning it." (let ((path (call-next-method))) (if (nil-pathname-p path) path (uiop:ensure-pathname path :truenamize t))))
So either
resolve :around
#p""
Thoughts @aadcg @aartaka ?
Strict typing shall prevail (always return pathnames fot consistency)!
expand
has this signature:But
resolve
can return anything. Note that we have this:around
method:So either
resolve :around
to return#p""
if it's a nil-pathname;expand
.Thoughts @aadcg @aartaka ?