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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rye: Homoiconic dynamic programming language with some new ideas

201 点作者 nnx大约 1 年前

9 条评论

1propionyl大约 1 年前
The email type seems just a smidge too specialized for me. It could more broadly be an &quot;authority&quot; type (borrowing URI&#x2F;URN terminology) a la:<p>authority = [userinfo &quot;@&quot;] host [&quot;:&quot; port]<p>The simple extension of allowing a port makes it a more broadly useful type, since authorities like above appear all over the place. Email is just one protocol after all.<p>There is also a url type, but it is unclear how general it is (just http&#x2F;s?). There is a cpath type which corresponds to the path in a URI as well.<p>URI = scheme &quot;:&quot; [&quot;&#x2F;&#x2F;&quot; authority] path [&quot;?&quot; query] [&quot;#&quot; fragment]<p>In Rye typing, authority _could_ be the authority described above, and cpath already covers path. The rest are strings as they don&#x27;t have generically defined syntax.<p>Perhaps this is a bit of a quibble but it seems to me like if URIs and their structured components (cpath is already there, and email is so close!) were core types rather than just email and url, it opens up a lot of use cases.
评论 #39804232 未加载
warvariuc大约 1 年前
The blog entry titled &quot;Less variables, more flows example vs Python&quot; is strange. ( <a href="https:&#x2F;&#x2F;ryelang.blogspot.com&#x2F;2021&#x2F;11&#x2F;less-variables-more-flows-example-vs.html?lr=1" rel="nofollow">https:&#x2F;&#x2F;ryelang.blogspot.com&#x2F;2021&#x2F;11&#x2F;less-variables-more-flo...</a> )<p>The Python version uses intermediate variables so the author of the code is to blame for verbosity, not the language.
评论 #39803106 未加载
评论 #39803637 未加载
评论 #39807994 未加载
评论 #39805058 未加载
gumby大约 1 年前
&gt; Rye is homoiconic, it has no keywords or special forms (everything is a function call, everything is a value)<p>How does it implement <i>and</i>, <i>or</i>, or <i>if</i>?
评论 #39803137 未加载
评论 #39803156 未加载
评论 #39802754 未加载
评论 #39805920 未加载
评论 #39802733 未加载
c4pt0r大约 1 年前
Seems like a good Swiss Army Knife-like addition to the shell script (reminds me of awk as well). It would be interesting to keep it that simple (not another Perl)
评论 #39804283 未加载
djaouen大约 1 年前
Congrats, this language looks pretty cool! What advantages does it have over, say, something like Elixir?
评论 #39804250 未加载
leke大约 1 年前
I played around with Rebol many years ago and enjoyed it. This too looks like fun.
carterschonwald大约 1 年前
The detail about input validation is a really nice one that hopefully the next generation of programming languages all do standard.
评论 #39803818 未加载
评论 #39803240 未加载
artemonster大约 1 年前
familiar with rebol, but evaluation rules with op and pipe words gave me headache. would like to know more about context oriented programming, tutorial had nothing in the section, unfortunately
评论 #39803236 未加载
kunley大约 1 年前
About getters.. are they foo? or ?foo ? The examples have it mixed, &quot;Meet Rye&quot; doc has it as ?foo
评论 #39804818 未加载