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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Using AI to develop ReScript programming language features

2 点作者 paulsb大约 2 年前

2 条评论

armchairhacker大约 2 年前
This is really cool.<p>On one hand, there are a few problems with the proposal that I doubt a human would do:<p>- There are a few errors like the first example, `type untaggedUnion = TypeA |: TypeB`, not really making sense (since the union is untagged, `TypeA` and `TypeB` don&#x27;t really make sense)<p>- Repetitive, there&#x27;s <i>a lot</i> of wordiness and specifics. In this case, since it&#x27;s a formal proposal, this is actually a good thing. But I still think a human writing the proposal could achieve the same descriptiveness with less wordiness.<p>- &quot;Related Work&quot; there are several examples which are untagged variants, which is redundant especially because ReScript already has these. The only truly relevant ones IMO are TypeScript and polymorphic variants in OCaml, and then there should be a mention of OCaml or ReScript&#x27;s existing untagged union implementation.<p>- The proposal cites one paper, &quot;Publication: “Pattern Matching with First-Class Polymorphism”: This paper by Garrigue and Rémy (2013)...&quot; which is completely made up<p>That being said, I think this is a genuinely great proposal, and the AI doesn&#x27;t detract from that. I can definitely see AI being used to write many, many more of these types of proposals and formal documents in the future, and I think that&#x27;s a good thing
paulsb大约 2 年前
Spoiler: <a href="https:&#x2F;&#x2F;forum.rescript-lang.org&#x2F;t&#x2F;proposal-untagged-variants-for-rescript&#x2F;4349&#x2F;23" rel="nofollow">https:&#x2F;&#x2F;forum.rescript-lang.org&#x2F;t&#x2F;proposal-untagged-variants...</a>