When parentheses matter
Recently I've run into an issue that can be summarized by the following code snippet:
Question 1. Will
Let's add two lines of code
The first syntax is used to access constant attributes, so the string is the value of the attribute
Are there other cases when enclosing types in braces affects code semantics? Yes: there are open arguments in agent declarations!
What would be result of the code above if assignment to
The same print statements give us
The first syntactical construct corresponds to the declaration of an agent with an open target and produces an agent object of type
Final question for curious developers: what part in the second example is redundant and can be removed without affecting execution?