On the creation of a new nonnegative and unnatural integer type.

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...

It's meant to be a natural number. Interestingly, I see it is defined in several places (and slightly differently) in the standard library. Those should probably be combined, although they are currently local types.

These types are all functionally the same - the set of nonnegative integers.

If we're going to unify these types, then maybe we should change the name of the type as well. "Natural number" is an ambiguous term (it's not clear if it should include zero, as we do, or if it should follow the traditional form of being only the positive integers). Creating a new "nonnegnative" type would be much clear IMNSHO.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu