TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How evil is eval?

5 pointsby heseltineabout 15 years ago

3 comments

heseltineabout 15 years ago
@seven - I think the reason for the article was to demonstrate that eval is sometimes necessary - the proof is that even Douglas Crockford himself uses it in his parse JSON method, as do JQuery and Prototype frameworks - and he shows us the examples. I was pretty impressed
评论 #1303206 未加载
sevenabout 15 years ago
I would say the second commenter on the blog gets it:<p>… So basically – if you think you have to use eval there's probably another (more correct) way of doing it. (Rasmus Fløe)
robotronabout 15 years ago
Wonderful article. Made me think, anyway.