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

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.

主站蜘蛛池模板: 赣榆县| 定结县| 绍兴县| 富川| 甘肃省| 黔西| 顺义区| 科技| 中牟县| 峡江县| 信宜市| 永寿县| 桑日县| 海门市| 巴林左旗| 桐庐县| 五寨县| 海城市| 如皋市| 白水县| 伊宁市| 循化| 宜州市| 建宁县| 巨鹿县| 炎陵县| 镶黄旗| 通海县| 咸宁市| 乡城县| 来凤县| 平和县| 巴彦淖尔市| 白城市| 新绛县| 荣成市| 休宁县| 平阳县| 赣榆县| 太保市| 太和县|