"funny" syntax for ConstValue :)

"funny" syntax for ConstValue :)

const
  AValue = 2;
  BValue = 3;
  CValue = 5;
  ConstValue: Boolean = AValue = BValue and CValue;

Comments

  1. Lars Fosdal There is no need for paranthesis :p
    Kiss Nándor More "fun" if you omit the type ;)

    ReplyDelete
  2. Stefan Glienke There is no need for comments in code, either. ;)  But I have to say, I prefer to find "fun" in other ways.

    ReplyDelete
  3. Some fun you just can do without...

    ReplyDelete
  4. Stefan Glienke - For clarity - a minimum of parentheses are beneficial. Anything that removes doubt, is a good thing.

    ReplyDelete
  5. Lars 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! ;)

    ReplyDelete

Post a Comment