Closed gfredericks closed 10 years ago
I agree entirely FWIW.
Hopefully it's not too OT, but in the same vein of API intutions: it seems that int
should yield int
s (or at least, long
s in the range of int
. Not a big deal to have an int32
generator around, but…
Agreed on the confusing naming scheme, hurt me before I read this issue.
I would guess better names here could be not-neg-int
and not-pos-int
?
My vote is for non-neg-int
, which I think is in line with normal mathematical usage. not-neg-int
has the downside of sounding like it might specify (not (and (integer? x) (neg? x)))
, i.e. that any non-integer type would be valid.
Not that there's much danger of anybody thinking that's the most plausible interpretation.
Agree too. I think I'd like to tackle this soon after the Clojure contrib migration.
Moved to Jira.
I was about to complain about
pos-int
generating0
's when I noticeds-pos-int
.Am I crazy for thinking
pos-int
is totally misleading?