TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How evil is eval?

5 点作者 heseltine大约 15 年前

3 条评论

heseltine大约 15 年前
@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 未加载
seven大约 15 年前
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)
robotron大约 15 年前
Wonderful article. Made me think, anyway.