官术网_书友最值得收藏!

Is TypeScript a functional programming language?

The answer to this question is yes, but only in part. TypeScript is a multi-paradigm programming language and, as a result, it includes many influences from both OOP languages and functional programming paradigms.

However, if we focus on TypeScript as a functional programming language, we can observe that it is not a purely functional programming language because, for example, the TypeScript compiler doesn't force our code to be free of side-effects.

Not being a purely functional programming language should not be interpreted as something negative. TypeScript provides us with an extensive set of features that allow us to take advantage of some of the best features of the world of OOP languages and the world of functional programming languages. This has allowed TypeScript-type systems to attain a very good compromise between productivity and formality.

主站蜘蛛池模板: 庆城县| 天长市| 东源县| 门头沟区| 乌兰察布市| 灵山县| 淳化县| 永登县| 涿州市| 祁东县| 叙永县| 惠东县| 车致| 巫溪县| 怀柔区| 孟津县| 余姚市| 济南市| 新巴尔虎右旗| 青河县| 赤水市| 中西区| 奉化市| 福海县| 甘德县| 澳门| 彰化县| 南丹县| 蓬溪县| 哈尔滨市| 五常市| 磴口县| 定襄县| 丰台区| 岑溪市| 舞钢市| 甘孜县| 宁陵县| 巢湖市| 察雅县| 深水埗区|