The following line of C code shows conditional branching
下面的C代码行表示了条件转移
Because if statements are expressions in Scala, there is no need for the special-case ternary conditional expressions that exist in C-derived languages.
因为在scala里if语句是一个表达式,所以就不需要c类型子语言的三重条件表达式了。
Because if statements are expressions in Scala, there is no need for the special-case ternary conditional expressions that exist in C-derived languages.
因为在scala里if语句是一个表达式,所以就不需要c类型子语言的三重条件表达式了。
应用推荐