Why does the Interpreter Pattern suck?

前端 未结 3 772
半阙折子戏
半阙折子戏 2021-02-05 14:25

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 inte

3条回答
  •  轮回少年
    2021-02-05 14:57

    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.

提交回复
热议问题