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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Language Debt

3 点作者 jordwalke超过 6 年前

1 comment

qwerty456127超过 6 年前
&gt; The Rise Of Immutability<p>Every language (except some special languages were immutability doesn&#x27;t make any sense perhaps) should have first-class immutable values declaration support. In the majority of cases when I define (e.g. in C# or Python) a variable I don&#x27;t mean to ever change it (I only introduce it for sake of the code readability and to re-use the value in multiple places later), if it accidentally gets changed that&#x27;s a bug. That would be wonderful if I could always define these as immutable the way I do with the `val` keyword in Scala and get a compiler&#x2F;interpreter report an error once it notices unintentional re-assignment.