问题描述
我为这个话题做了一些研究,但我不是很清楚。在一些艺术中,它被称为语言独立。
在stackoverflow.com/上写道,它不是语言独立的。 在经典的四种模式中,有一些是特定于语言的。还有一些只适用于面向对象的编程而不是函数式编程。
关于www.Python .org提到虽然设计模式努力与语言无关
但它们仍需要实现语言的支持,特别是其对象模型的支持。
所以请澄清一下,他们是独立的语言还是语言依赖的?
还有一个问题,Gof书名设计模式:可重用的面向对象软件的元素的名称表明它处理oops编程设计。我的假设是否正确?
I did some research for this topic, but I am not very clear about it. In some artcles, it is stated as language Independent.
On stackoverflow.com/ it is written that it is not language indepenedent. "Among the classic four patterns quite a few are language specific. Also some of them can be applied only to object oriented programming not functional programming."
On www.Python.org it is mentioned that "while design patterns strive to be language independent
they still require some support from the implementation language and especially from its object model.
So please clarify, Are they lanuguage independent or language dependent?
Also one more question, name of Gof book "Design Patterns: Elements of reusuable object oriented software" suggests that it deals with oops programming designs only. Am I correct in my assumption?
这篇关于设计模式语言是独立的吗? GoF设计模式是否仅适用于面向对象的软件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!