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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Strings do too many things

4 点作者 BerislavLopac超过 1 年前

1 comment

PaulHoule超过 1 年前
I&#x27;m working on a Java&#x2F;JooQ app and having a lot of cases where I am passing strings (e.g. &#x27;32f93ed0-28cb-4aa4-8ec3-7956d68c768f&#x27;) around that are the primary keys of tables.<p>It would be nice to get some more help from the type system such as subtyping a string. You can&#x27;t do that in Java but I guess you could build an ORM system that distinguishes between the key to a record and the rest of the record and that would jive well with multipart keys.
评论 #39311705 未加载