为什么解释器模式很烂? [英] Why does the Interpreter Pattern suck?

查看:60
本文介绍了为什么解释器模式很烂?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

史蒂夫·耶格(Steve Yegge)对设计模式的评论中,他将其称为翻译模式一个笑话。他继续谈论编译器的观念如何改变,但解释语言仍在继续发展,尽管我看不出这与模式有什么联系。

In Steve Yegge's review of Design Patterns, he calls the Interpreter Pattern an "in-joke". He goes on to talk about how the perception of compilers have changed, yet how interpreted languages are still s*** on, although I can't see how this ties into the pattern.

有人想启发这个无知的学生吗?

Anyone want to enlighten this ignorant student?

推荐答案

讽刺的是:)如今每个人都喜欢解释性语言,但是10年了早先的人们只是以为他们对于任何实际的事情都太慢了。就像今天一样,大多数人都在考虑静态类型与动态类型。

That was irony :) Everybody loves interpreted languages nowadays but 10 years earlier people just thought they are too slow for anything practical. Much like today most of people thinks about static vs. dynamic typing.

这篇关于为什么解释器模式很烂?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆