Why does the Interpreter Pattern suck?

蓝咒 提交于 2019-12-04 09:14:02

问题


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?


回答1:


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.




回答2:


The INTERPRETER pattern sucks because it's a codification of Greenspun's tenth rule:

Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.

This was stated in 1993. A modern addendum might include C++ and Java.




回答3:


He loves it according to this: http://steve-yegge.blogspot.com/2007/12/codes-worst-enemy.html.



来源:https://stackoverflow.com/questions/498185/why-does-the-interpreter-pattern-suck

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!