It is, of course, an error to call (even? (range))
, but still - I'd much rather prefer a class cast exception. Or the existing IllegalArgumentException
, just without printing the argument. Especially given that the argument could be absolutely anything, including side-effecting lazy collections.
A couple of other cases like this:
(array-map (range))
(requiring-resolve (range))