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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Elm 0.9 - New type checker, much better error messages

70 点作者 StylifyYourBlog将近 12 年前

5 条评论

JumboCopter将近 12 年前
&quot;Before this release, my primary priority was: prove that FRP is viable and good. If FRP is not the right way, it does not matter how good or bad the type checker is.&quot;<p>This is a lousy justification. If the intent was to prove that FRP was viable and good, why not do it in a dynamic type system? Implementing an extended Hindley Milner inference algorithm can be subtle, so why bother? I can manage a slow type checker, because &quot;eh it&#x27;s not 1.0&quot;, but an unsound type system, no.<p>I&#x27;ve tried Elm because I really wanted to program functionally a small webapp, but the type checker had so many holes in it that I had to translate the algorithms in Haskell, type them and fix them there before porting them back. I&#x27;m now really reluctant to try any new version of Elm.
jeremyjh将近 12 年前
Elm looks really interesting but one thing I haven&#x27;t been able to figure out from their website is if there is much support for basic CRUD applications. I know they have basic HTML input controls and web service support but that doesn&#x27;t much compare to modern javascript frameworks. Is Elm more targetted more at game developers?
评论 #6208187 未加载
klrr将近 12 年前
I really like Elm as a language, although I&#x27;m not into web development. Its record syntax is just so wonderful to work with and something Haskell could learn from.
cju将近 12 年前
I like the idea of the unary negation. It feels natural to seasoned programmers but also to beginners according to the last paragraph.
asdasf将近 12 年前
The change from em to pixels seems misguided. Pixels are not a replacement for ems just because it is a programming language. The claim made in the discussion that em is a kludge to make relative resizing possible is wrong. You don&#x27;t control the users font size to start with. Using ems lets me specify sizes in terms relative to your font size <i>which I do not know</i>. Without ems, I have to force a pixel size on everything to start with, which is terrible (people with vision problems can&#x27;t read anything now) and which doesn&#x27;t actually work (setting a font to 10px will not work in my browser for example, I have the minimum font size constrained to 14px). We really do need both px and em to be available.<p>On a side note, any plans to integrate sounds? The use case I have that got me considering elm was simple web based games like solitaire or connect 4. Sound effects would be really nice there.
评论 #6207017 未加载