Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14472
| From | Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: the if condition not workiong properly |
| Date | 2012-06-12 20:34 +0100 |
| Organization | Home |
| Message-ID | <d4joHGNgn51PFwfh@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <dfc89f22-155c-44f0-aaf6-9bb50f237395@t2g2000pbl.googlegroups.com> <4fd5bbd1$0$6946$e4fe514c@news2.news.xs4all.nl> <1597347.oMNUckLgyt@PointedEars.de> <n1BUf3GqMg1PFwpq@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD> |
In comp.lang.javascript message <n1BUf3GqMg1PFwpq@J.A830F0FF37FB96852AD0
8924D9443D28E23ED5CD>, Mon, 11 Jun 2012 15:39:38, John G Harris
<john@nospam.demon.co.uk> posted:
>On Mon, 11 Jun 2012 at 13:12:02, in comp.lang.javascript, Thomas
>'PointedEars' Lahn wrote:
>>"Illegal" is nonsense in programming
>
>In colloquial English "illegal" has two meanings. One is something
>criminal. The other, more general, is disobeying some rules.
>
>Example, taken from the C++ standard :
> "Using these specifiers with type declarations is illegal in C++."
Nevertheless, one should eschew its use in public; in particular, in
error messages that a normal respectable user might see. Normal users
can be consternated by an assertion that an illegal operation has been
attempted or performed. The English language contains many words ... (
>>(except where software licenses are
>>concerned).
>
>Breaking a software license is a breach of contract, not a crime.
and "license" is not one of them) ... which can be used instead.
>>Source code can be syntactically *invalid* or *valid*,
>>and it
>>can *work* or *not work*.
> <snip>
>
>Too few cases : think Halting Theorem.
It can also work unreliably. Consider
D = new Date() ; D.setMonth(5)
which has about a 1 in 52 chance of doing what probably was not
expected; and consider the careless implementation of Zeller's
Congruence which was in a (draft?) RFC or similar in the nineteen-
nineties; and consider the implementation of Number.toString(B) in which
the final character was incremented if the remainder was a half or
more.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike 6.05 WinXP.
Web <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
the if condition not workiong properly Ganesh <ganesh.vemakoti45@gmail.com> - 2012-06-10 22:54 -0700
Re: the if condition not workiong properly Jason C <jwcarlton@gmail.com> - 2012-06-11 02:27 -0700
Re: the if condition not workiong properly "Tom de Neef" <tdeneef@qolor.nl> - 2012-06-11 11:35 +0200
Re: the if condition not workiong properly Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-06-11 13:12 +0200
Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-11 15:39 +0100
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-12 20:34 +0100
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-12 20:47 -0700
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-14 18:49 +0100
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-14 20:45 -0700
Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-15 06:30 +0000
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-15 09:42 -0700
Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-15 18:38 +0000
Re: the if condition not workiong properly Stefan Weiss <krewecherl@gmail.com> - 2012-06-15 19:23 +0200
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-15 12:54 -0700
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-16 21:46 +0100
Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-17 08:03 +0000
Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-14 11:08 +0100
Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-14 09:23 -0700
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-15 19:56 +0100
Re: the if condition not workiong properly Andrew Poulos <ap_prog@hotmail.com> - 2012-06-16 13:26 +1000
Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-16 11:33 +0100
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-17 19:42 +0100
Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-12 20:10 +0100
csiph-web