Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Date arithmetic Date: Wed, 19 Nov 2014 23:35:40 +0000 Organization: A noiseless patient Spider Lines: 24 Message-ID: <87egsy3gs3.fsf@bsb.me.uk> References: <111120142237479787%timstreater@greenbee.net> <6814026.8sujcrue1K@PointedEars.de> <5592bc20-5fa3-4b2d-8534-1c81d62c31a5@googlegroups.com> <5371045.XxPr97Xf0d@PointedEars.de> <877fyr3sxr.fsf@bsb.me.uk> <87ppci3jct.fsf@bsb.me.uk> <191120142251329551%timstreater@greenbee.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="5488"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+y+ZtA43rLqotsuAuck9Q0OInnjtyw2/I=" Cancel-Lock: sha1:8o0CmROMj3e+vXg5jD2N+7lfRIg= sha1:DzSYrFLHyARY81BL0NYmCHIgwdQ= X-BSB-Auth: 1.3b3dae62a7a6187f413f.20141119233540GMT.87egsy3gs3.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:26176 Tim Streater writes: > In article <87ppci3jct.fsf@bsb.me.uk>, Ben Bacarisse > wrote: >> Some people don't know that ECMAScript has only one Number type, and >> your remark might have misled other into thinking otherwise, so I think >> more explanation is helpful. That's all. > > There's nothing new about using floating point for integers anyway. The > CDC 6600 only had floating point hardware. Indeed. But I think it's helpful to distinguish between a language and its implementation. For example, the CDC 6600 supported FORTRAN 66 with its distinction between integer and real types. The integer types where implemented using floating point but they behaved as specified by the language specification. Likewise, an ECMAScript implementation is permitted to use integer hardware in various ways, provided the results conform with all the details of the language specification. -- Ben.