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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

New Functional Language for JVM (Lux) Builds on Haskell, Clojure, ML

23 点作者 lrenn超过 8 年前

4 条评论

ubertaco超过 8 年前
From the Gitbook: [0]<p><pre><code> (;module: {#;doc &quot;This will be our program&#x27;s main module.&quot;} lux (lux (codata io) [cli #+ program:])) (program: args (io (log! &quot;Hello, world!&quot;))) </code></pre> I know syntax is subjective, and a common source of bikeshedding. But I&#x27;m puzzled by this choice for defining a module and its imports. It requires much more cognitive load to remember that &quot;(lux (codata io) [cli #+ program:]))&quot; means a combination of &quot;import lux&#x2F;codata&#x2F;io&quot;, &quot;import lux&#x2F;cli as cli&quot; and &quot;import program: from lux&quot; than, well, something more straightforward.<p>Especially for a new language in the modern programming world where there exist many dozens of languages, it&#x27;s important that your &quot;learning curve&quot; be smoothed out where possible. Not to say that advanced concepts shouldn&#x27;t exist -- a beginner&#x27;s not likely to easily handle learning monad transformer stacks when picking up Haskell -- but rather that &quot;simple&quot; things should be kept simple. Show me a codebase where there are no imports, and I&#x27;ll show you a codebase that&#x27;s so trivial that its utility is minute. Importing other code is something 99% of all source code files will need -- so why make it complex and overwrought?<p>User Experience (UX) has gained proper or closer-to-proper attention over the past decade or so, Developer Experience (DX) is something that&#x27;s still not thought of often enough sometimes.<p>[0] <a href="https:&#x2F;&#x2F;luxlang.gitbooks.io&#x2F;the-lux-programming-language&#x2F;" rel="nofollow">https:&#x2F;&#x2F;luxlang.gitbooks.io&#x2F;the-lux-programming-language&#x2F;</a>
emmanuel_1234超过 8 年前
&quot;Like Lisp, Lux runs on the Java Virtual Machine but promises more power and flexibility than its predecessors&quot;<p>Literally the first sentence. I think the author meant &quot;Like Clojure, Lux runs on the ...&quot;
xedrac超过 8 年前
I love it when new languages come out like this. I&#x27;m always interested to see what new ideas they bring, and what justifications they have for creating a new language. I&#x27;m not really one to chase the new and shiny, but I have a soft spot for functional languages, despite being a longtime C++ developer.
sdegutis超过 8 年前
A link to the GitHub repo would have been better.
评论 #13362984 未加载