Open jcouyang opened 10 years ago
I'll pick up chapter 1 to translate.
:+1: cool, u can put anything want to discuss here about chapter 1 :smile:
hi, 第一章基本翻译好了,有几个问题:
function()
则是打印出来的 function 表达式穿件的匿名函数.”,“穿件”是不是一个typo错误,你想表达“传进来”?function
和return
以及 block, 不是吗? 如果觉得差不多, 因为你看惯了 JavaScript 的匿名函数, 你的大脑编译器自动的忽略了,因为他们不需要显示的存在." 这一段,我有些不太理解,你是想说觉得两种写法差不多的话,是一件好事,表明我们已经习惯了函数式的写法。或者你想表达:觉得两种写法差不多是一件坏事,我们应该区别对待两种写法?第一章的翻译根据你的回答,更新了一些句子。几个问题:
However, an anonymous function is not a lambda calculus, because an anonymous function may accept multiple parameters, whereas, the lambda calculus accepts only one parameter, like:
你的中文版没有这层意思“whereas, the lambda calculus accepts only one parameter”,加上去,是不是这句话的因果关系更加明显一些?
But why the error says:
function statement requires a name
. In JavaScript, there is another way to declare a function, that is using function statement. A statement requires a name. The code above is treated as function statement, because it returns nothing. Therefore, we got the error.
谢谢了,我 merge 的时候看看
:uk:lize chapter 1 - lambda, revise and fix typo by the way