基于Golang的函数式编程在软件设计模式中的应用  被引量:3

Application of Functional Programming in Software Design Pattern Based on Golang

在线阅读下载全文

作  者:王明松[1] 于营[1] WANG Mingsong;YU Ying(University of Sanya,Sanya 572000,China)

机构地区:[1]三亚学院,海南三亚572000

出  处:《电子质量》2023年第9期47-50,共4页Electronics Quality

基  金:海南省自然科学基金青年基金项目(621QN270);海南省基础与应用基础研究计划(自然科学领域)高层次人才项目(2019RC256)资助。

摘  要:函数式编程强调数据的映射关系,函数变化只与输入变量有关,不依赖外部系统的数据。这种表达式描述强调程序执行结果的编程模式,非常适合当代复杂软件结构系统的优化管理。越来越多的编程语言开始支持函数式编程开发。软件设计模式是对设计开发中面临的系列问题所给出的具有普遍意义的解决方案,是开发人员长期开发的经验结晶,是经过反复实验的结果。论述了函数式编程的基本原理和主要特征,利用高阶函数特性实现了软件设计模式,优化了代码结构,扩展了功能实现。Functional programming emphasizes the mapping relationship of data,and the changes in functions are related only to input variables and do not depand on data of external systems.This expression description,emphasizing the programming mode of program execution results,is well suited for the optimal management of contemporary systems with complex software structures.More and more programming languages are beginning to support functional programming development.Software design pattern is a solution to a series of problems faced in design and development,and it is the crystallization of the developers long-term development experience and the result of repeated experiments.The basic principles and main features of functional programming are discussed,and software desing patterns are implemented by using higher-order function charicteristics,the code structure is optimized,and the function implementation is extended.

关 键 词:函数式编程 Golang语言 设计模式 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象