编程语言设计方面的资源良好? [英] Good resources on programming language design?

查看:93
本文介绍了编程语言设计方面的资源良好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Javascript:Good Parts 是一本好书。通常,我从语言设计师的角度发现自己正在阅读以下内容:

Javascript: The Good Parts is a great book. Often I find myself reading passages like the following from the perspective of a language designer:


undefined NaN 不是常量。它们是全局变量,您可以更改其值。这是不可能的,但它是。不要这样做。

undefined and NaN are not constants. They are global variables, and you can change their values. This should not be possible, and yet it is. Don't do it.

Takeaways:

Takeaways:


  1. 不要在我的Javascript代码中更改 undefined 的值。

  2. 设计语言时, code> undefined immutable。

  1. Don't change the value of undefined in my Javascript code.
  2. When designing a language, make its equivalent of undefined immutable.

另一个更微妙的例子是 for in 不应该枚举原型属性。

A different more subtle example would be "for in shouldn't enumerate over prototype properties".

我想要一本书,谈论这些语言设计之外的问题

I want a book at talks about these issues of language design outside of the context of a particular language.

如果您正在设计完美的OO语言,您将阅读什么书籍来指导? / p>

If you were trying to design the "perfect" OO language, what books would you read for guidance?

推荐答案

网站lambda终极非常关于编程语言,他们偶尔会有一些很好的资源,尽管它们倾向于更加关心学术种类的事情。例如,功能编程很大。

The web site 'lambda the ultimate' is very much about programming languages, and they occasionally have some good resources, although they tend to be more interested in academic kinds of things. Functional programming is big there, for instance.

http://lambda-the-ultimate.org/node/3

http://lambda-the-ultimate.org/papers

http://lambda-the-ultimate.org/node/492

这篇关于编程语言设计方面的资源良好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆