TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Are static typing and functional programming winning?

5 点作者 brikis98超过 10 年前

1 comment

AnimalMuppet超过 10 年前
Define &quot;winning&quot;.<p>Most new languages contain a type system. Is that &quot;winning&quot;? It means that the idea of type checking has achieved &quot;flavor of the month&quot; status, but it doesn&#x27;t mean much more... yet. If some of those languages go on to take over the world, then yes, the fact that they have type checking means that static typing is winning.<p>And, define &quot;static typing&quot; and &quot;functional programming&quot;. So C++ added some elements of functional programming. Does that make C++ a functional programming language? Or does it just make C++ a multi-paradigm language that can be used to do some amount of functional programming?<p>I claim that &quot;winning&quot; doesn&#x27;t mean winning in the number of check boxes that languages tick. It means winning in the way the languages are used. If everyone who is programming in C++ starts programming in the functional style, then yes, functional programming is winning. If they don&#x27;t, then having C++ support functional programming just means they added another paradigm that few people are using.
评论 #9011894 未加载