【发布时间】:2019-08-18 08:15:52
【问题描述】:
在芭蕾舞演员中,如果条件相关的语句应该与花括号相关联。即使存在与 if 条件关联的单个语句,这也是必需的。这是正常的还是与芭蕾舞演员语言相关的约定?
var a = 10;
if (a > 10) io:println("Value is high"); // This shows an error with the IDE
if(a > 10){
io:println("Value is high"); // This is the correct format recognized as
the correct way
}
在第一种方法中,它表示输入不匹配。
【问题讨论】:
标签: ballerina