Closed dgr closed 3 years ago
I apologize for the lack of response here. This was discussed in the Slack channel and I should have transferred the releveant bits here.
Unfortunately, for epsilon, there is little I can do to resolve this issue as changing the return type in this situation would technically be a breaking change. This is lame, I know, and I wish I had noticed this earlier. 😞
In Epsilon, if you invoke
search
and no results are returned, it returnsnil
. Given thatsearch
generally returns a value that conforms tosequential?
in all other cases (either aclojure.lang.PersistentList
or aclojure.lang.LazySeq
, depending on the exact macro expansion) andnil
does not conform tosequential?
, this suggests that()
would be preferable. In particular,nil
is not the same as the empty list in Clojure ((= nil '())
isfalse
).