和弦有什么用?
Nemerle 等语言支持和弦的概念。 我想知道它们的实际用途是什么。
Languages such as Nemerle support the idea of chords. I'd like to know what their practical use is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该结构似乎也存在于 Cω 语言(以及 Polyphonic C# ),至少根据 [Wikipedia](http://en.wikipedia.org/wiki /Chord_(并发)。
和弦的主要用途似乎涉及数据库编程(更具体地说,加入微积分),鉴于它是一个并发结构,这并不奇怪。恐怕我不知道。
The construct also seems to exist in the Cω language (as well as Polyphonic C#), at least according to [Wikipedia](http://en.wikipedia.org/wiki/Chord_(concurrency).
The primary usage of chords appears to involve database programming (more specifically, join calculus), which is unsurprising given that it is a concurrency construct. More than that, I'm afraid I don't know.
和弦用于并发。 该定义可在此处获取。
您正在寻找的位:
A chord is used for concurrency. The definition is available here.
The bit you are looking for:
尝试 Nemerle 计算表达式:
https://code.google .com/p/nemerle/source/browse/nemerle/trunk/snippets/ComputationExpressions/
一些示例:
这里还有更多示例:(虽然文章是俄语,但代码是英语:) ) http://habrahabr.ru/blogs/programming/108184/
Try Nemerle Computation Expressions:
https://code.google.com/p/nemerle/source/browse/nemerle/trunk/snippets/ComputationExpressions/
Some examples:
Some more examples here: (Although article in Russian but code in English :) ) http://habrahabr.ru/blogs/programming/108184/