4 ms·
digging into the clojure core implementation, it looks like this asymmetry originates with 'every?' versus 'some', which test predicates against collections, th
by disconcision 7y ago
digging into the clojure core implementation, it looks like this asymmetry originates with 'every?' versus 'some', which test predicates against collections, the former being boolean, and the later returning the first non-falsy element. again, this feels a little non-committal; it's true that the not-strictly-boolean behavior of the disjunctive forms is handier than the conjunctive ones, but the latter can still come in handy.
- drcode 7y agoThe irregular naming of "some" vs "some?" has been the source of several tricky bugs for me in the past, and I suspect many other Clojurians would report this as well.