"funny" syntax for ConstValue :)
"funny" syntax for ConstValue :)
const
AValue = 2;
BValue = 3;
CValue = 5;
ConstValue: Boolean = AValue = BValue and CValue;
const
AValue = 2;
BValue = 3;
CValue = 5;
ConstValue: Boolean = AValue = BValue and CValue;
Eeek! Add moar paranthesis!
ReplyDeleteLars Fosdal There is no need for paranthesis :p
ReplyDeleteKiss Nándor More "fun" if you omit the type ;)
Stefan Glienke There is no need for comments in code, either. ;) But I have to say, I prefer to find "fun" in other ways.
ReplyDeleteSome fun you just can do without...
ReplyDeleteStefan Glienke - For clarity - a minimum of parentheses are beneficial. Anything that removes doubt, is a good thing.
ReplyDeleteLars Fosdal And the alternative is nasty. Good maintenance should not depend on the coder being a faultless master of syntax and precedence rules. Of course, it's OK in your code. Just keep it away from mine! ;)
ReplyDeleteAnd the answer is false?
ReplyDeleteNicholas Ring That is true ;)
ReplyDelete