Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Why does everyone hate 'eval'?
Date: Thu, 11 Dec 2008 18:19:02 +0000 (UTC)
Organization: Lulea University of Technology
Lines: 13
Message-ID: <ghrlim$oqo$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229019542 25432 172.30.248.35 (11 Dec 2008 18:19:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 11 Dec 2008 18:19:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1595763
Xref: news.mathworks.com comp.soft-sys.matlab:506385


Hey guys!

I've been running into comments like "NO, NO, NO, WHATEVER YOU DO,  DO NOT USE EVAL!!!!' in various posts during the past few weeks.

OK, I can see that over-use of eval would create, cool-looking, but totally unreadable and inefficient code.

But, are there any other reasons to hate eval this much? 

Good coding style on the one hand, I still see the occasional use of eval as highly motivated.

Comments?

/JC