0
Completed

请问有解释器模式的解析吗?

ABC1 3 years ago updated by Alexander 3 years ago 1

GoF定义了23种设计模式,请问有解释器模式的解析吗?

Completed

Hi!

I'm sorry for answering in English, my Chinese skills are very basic, besides I don't want to ridicule this great language with Google Translate (feel free to answer in Chinese, though, I'm able to understand your reply).

Thanks for your question! I excluded the Interpreter because I think it has lost its "pattern" status. The fraction of developers that deal with Interpreter scenarios is tiny. It's really hard to come up with a reasonable example for the Interpreter application as well. Here's the link I like to present when people ask me about the absence of the Interpreter in the book: http://blogs.perl.org/users/jeffrey_kegler/2013/03/the-interpreter-design-pattern.html