The syntax used in Listing 2 should be fairly easy for most developers to understand: using parenthesis to delimit groupings, | characters to indicate choices between alternatives, and?
清单2中使用的语法对于大多数开发人员而言是非常容易理解的:使用圆括号来划分组,使用|字符表示备选项,以及使用?
A blank space should not be used between a function value and its left parenthesis.
函数参数与左括号之间不应该有空格。
There should be no space between the name of a function and the left parenthesis of its parameter list.
函数名与((左括号)之间不应该有空格。)
If a function literal is anonymous, there should be one space between the word function and the left parenthesis.
如果函数是匿名函数,则在function和左括号之间应有一个空格。
So the question is: Do you have to have this space between the if and the parenthesis?
所以那个问题是:我们在if和括号之间,需不需要空格呢?
Unlike Groovy, Ruby doesn't have the rule that methods accepting no parameters must be called with empty parenthesis, meaning that Ruby doesn't need to distinguish between properties and methods.
与Groovy不同,Ruby没有针对接收不到参数的方法必须与空括号一起调用的规则,这意味着Ruby无需区分属性和方法。
By way of parenthesis, in One-Point Input Method the relation is studied between the response and the correlative coefficient of horizontal and vertical earthquake wave.
本文的多点输入为顺河向和竖向的双向输入,附带研究了单点输入时双向地震动相关程度对反应的影响。
By way of parenthesis, in One-Point Input Method the relation is studied between the response and the correlative coefficient of horizontal and vertical earthquake wave.
本文的多点输入为顺河向和竖向的双向输入,附带研究了单点输入时双向地震动相关程度对反应的影响。
应用推荐