W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2014

Re: [whatwg] <input type=number> for year input

From: Smylers <Smylers@stripey.com>
Date: Wed, 19 Feb 2014 09:10:59 +0000
To: whatwg@lists.whatwg.org
Message-ID: <20140219091059.GB2606@stripey.com>
Jukka K. Korpela writes:

> The point is that year numbers aren't really "numbers" in a normal
> sense, any more than car plate numbers, credit card numbers, product
> numbers, or social security numbers are. Surely they can be regarded
> as numbers, but so can car plate numbers and the others.

Except that years do actually form a sequence, and it's possible to
perform maths on them; for instances, subtracting one year from another
yields a duration[*1], which is a meaningful quantity, whereas
subtracting a couple of credit card numbers is completely useless.

[*1] Yes, there are exceptions. But there are still many situations
where this is useful, because of the context, such as the range of
possible years and the location.

Smylers
-- 
http://twitter.com/Smylers2
Received on Wednesday, 19 February 2014 09:16:30 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:16 UTC