You are here: Re: Remember When Some Of You Retards Were Saying The Eval Function Doesn't Do Anything... « All PHP « IT news, forums, messages
Re: Remember When Some Of You Retards Were Saying The Eval Function Doesn't Do Anything...

Posted by Michael Winter on 03/19/06 01:00

On 18/03/2006 22:38, Onideus Mad Hatter wrote:

> On Sat, 18 Mar 2006 22:22:20 GMT, Michael Winter
> <m.winter@blueyonder.co.uk> wrote:

[OMH:]
>>> ...would you feel better about it if I had said, "Remember When
>>> That Retard Michael Was Saying That The Eval Function Was
>>> Pointless Because He Thinks There's Better Ways Of Accomplishing
>>> The Same Thing?"
>>
>> No, not particularly as I never wrote that, either. In any case, it's
>> irrelevant.
>
> http://groups.google.com/group/comp.lang.javascript/msg/ef75146fe9ab3228
>
> "Basically, it allows you to construct and run statements at run-time.
> However, there are *very* few instances where you actually need to use
> eval; there are usually much better ways of accomplishing the same
> thing."

As I said, I never wrote what you paraphrased. The eval function is
/not/ pointless, but it is rarely needed. So far, you have failed to
prove that it is necessary here, but you have demonstrated quite
succinctly that you don't understand what I've written.

[snip]

>>>> square._x = dates['_' + i]._x + 566;

>>> trans_var = dates._"+i+"._x

[snip]

> "(suppose I could add semicolons on teh ends too...you know, just in
> case you start whining like a bitch and nitpicking over your proper
> bitch slap)"

You compare those two lines, and the most significant difference you see
is that I terminated the expression statement with a semicolon? Good grief!

[snip]

> The problem Mikey is that you're looking at one little code snippet
> and then making all sorts of ASSumptions about the rest of the code
> based upon it. I pointed this out, then you got all indignant and
> pissy and started nitpicking over syntax errors.

I didn't nitpick over syntax errors (though I did say that what you
posted would constitute one). I highlighted that you missed the very
point I was making: I suggested bracket notation, yet somehow you
translate that into string concatenation.

> You're done Mikey, put it down, it's time for bed.

Given the above, I don't think it's me that needs some sleep.

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация