JRS: In article <Xns965CA8C73B70eejj99@194.109.133.242>, dated Fri, 20
May 2005 14:35:21, seen in news:comp.lang.javascript, Evertjan.
<> posted :
>enrique wrote on 20 mei 2005 in comp.lang.javascript:
>> Fill me on the "eval" function and your discouraging its use, please.
>
>[Please quote, this is not email, but usenet. Thousands of users are
>reading too.]
>
>The archive of this NG has it all:
>
><http://groups-beta.google.com/groups?num=100
>&q=eval.is.evil&as_ugroup=comp.lang.javascript>
>
>mind the wordwrap trap
Good News software can post - and display - it without wrapping :
<http://groups-beta.google.com/groups?num=100>&q=eval.is.evil&as_ugroup=comp.lang .javascript>
The following should be understood as a unit be any reasonable
newsreader :-
<URL:http://groups-beta.google.com/groups?num=100>
&q=eval.is.evil&as_ugroup=comp.lang.javascript>
Please don't assume that everyone is reading News on-line; for off-line
readers a reference to the FAQ (which an off-line newsreader should
hold) is more helpful. You could even include a reference in your Sig.
No doubt Google has it all; but a lot of what it has is not worth
reading.
Function eval can be useful with form input :
var k = eval(<form-element>.value)
allows the Americans to enter distances correctly by typing the
distance in feet followed by *0.3048 .
Well, nearly correctly : eval("3*0.3048") -> 0.9144000000000001,
explanation obvious.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.