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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Strings are untyped

4 点作者 bqe超过 11 年前

3 条评论

gus_massa超过 11 年前
Integers are untyped too.<p>Another idea was to store the type information in the name of the variable, like in the Hungarian notation. <a href="http://www.joelonsoftware.com/articles/Wrong.html" rel="nofollow">http:&#x2F;&#x2F;www.joelonsoftware.com&#x2F;articles&#x2F;Wrong.html</a>
rahulrav超过 11 年前
Strings are strings.<p>What you described, sounds a lot like good ol&#x27; typedef.<p>It solves one problem while introducing a bigger problem which is - everyone now needs to understand your &#x27;new&#x27; type system.
33a超过 11 年前
Why not use named arguments instead of adding type annotations?