Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
192 views
in Technique[技术] by (71.8m points)

lambda里有使用到设计模式吗

如题,在学习lambda并做一份实验作业上交,作业里就是问了这样的问题,有使用了哪些设计模式??


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Lambda 本身不是啥设计模式啊。

我们常说的设计模式,一般专指 OOP 的那套玩意儿,计算机本身还是解决计算问题,但对象的引入反倒增加了复杂度。为了降低复杂度,所以才引入了设计模式。

函数式编程没这毛病。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...