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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

ReScript (previously BuckleScript and Reason)

22 点作者 ccapndave将近 5 年前

5 条评论

dang将近 5 年前
Recent and related: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24119838" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24119838</a>
smabie将近 5 年前
I get that people don&#x27;t like learning new and unfamiliar things, but OCaml&#x27;s syntax is actually pretty nice, and the editor tooling is a lot better. ReasonML has some nice ideas like more sensible parsing of types and automatic variant to function conversions, but even so I don&#x27;t think the syntax fragmentation is worth it.<p>I started a native ReasonML project but eventually converted the project to OCaml as I became disillusioned with the relative verbosity and noise compared to straight up OCaml.<p>Don&#x27;t be afraid to learn something new, especially if it looks weird or inscrutable. Things are rarely weird for the sake of weirdness, and you&#x27;ll expand your horizons and perspectives, eventually understanding (and maybe even liking) why things are the way they are.<p>This applies to functional programming, Lisp, array languages, etc. The intellectual laziness of programmers never fails to astound me. Excuses for why only the things they currently know are somehow the best. Comments like &quot;X is the best because I don&#x27;t know anything else&quot; are so common it&#x27;s sad, even among senior software engineers.
ccapndave将近 5 年前
I used ReasonML and Bucklescript for a self-contained part of a massive Typescript project to try it out and it was a <i>joy</i>. Here&#x27;s hoping more people find out about it and it gets some more widespread adoption.
gdsdfe将近 5 年前
I&#x27;m confused, so reasonml is now rescript?
评论 #24161837 未加载
评论 #24161816 未加载
评论 #24162186 未加载
toastal将近 5 年前
Dropping the semicolons, all the brackets, and other JS-y syntax of ReasonML in favor of something more OCaml-y makes this a lot easier to read. I&#x27;m super confused at a capital U being the sigil for uncurried functions; it just is not a convention I&#x27;d expect from a modern language.
评论 #24162293 未加载