strategy pattern & command pattern

在 fluent python的第6章,

函数作为first-class,所以这两种模式使用起来更加简单了!

 

先mark    以后写

 

 

 

什么是 First-class function?

 知乎上有讲   应该和语言的设计有关系:

https://www.zhihu.com/question/27460623/answer/36749267

 
 
 
 
first-class 总让我想起   Snowden用的代号 citizenFour
 https://www.zhihu.com/question/26350171/answer/39098125
 
 
 
 
 
 
 

 

posted @ 2018-01-25 12:29  eeechoo  阅读(164)  评论(0编辑  收藏  举报