Path: csiph.com!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!gegeweb.org!aioe.org!.POSTED!not-for-mail From: Kaz Kylheku Newsgroups: alt.comp.lang.borland-delphi,comp.lang.c,comp.lang.java.programmer Subject: Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Followup-To: comp.lang.c Date: Mon, 21 May 2012 04:28:57 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 13 Message-ID: <20120520213128.731@kylheku.com> References: <44ccr7tidpk4jta4lhg7m954vdr7abvnte@4ax.com> <1k2dr7527p5reqegfr8oln65q55bmvo4ar@4ax.com> <67485$4fb7edfe$5419acc3$16334@cache70.multikabel.net> <4fb9714c$0$293$14726298@news.sunsite.dk> <6tdjr75l3ak05u77v033nr0djibutbuccb@4ax.com> NNTP-Posting-Host: X+c6YNb3AaWMPA3YfA4opg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/pre1.0.0-18 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.c:21109 comp.lang.java.programmer:14711 On 2012-05-21, Gene Wirchenko wrote: > Like months in JavaScript dates. They are numbered 0-11, even in > output. It definitely holds the record with me for the stupidest bit > of language design I have ever seen. This might be deliberately compatible with the "tm_mon" field in the ISO C "struct tm" type. In its defence, it *is* apologetically called "broken down" time. :) I may just repeat this mistake in the TXR language, because the impelmentation language C, and doing it differently means inventing another way of representing time, just for the heck of it, and then converting back and forth.