Open MaanooAk opened 4 years ago
Good idea, that could be a solution to something we worked around with the API itself (through a bonus system that is applied "last" in the stack in the c++ engine implementation).
This defer
flag even works with inherited patches: They add their calculation part to the "end" of the stack one after the other starting at the top (as this is how the patch application is chained).
We have to think a bit about unforseen consequences, although just now it seems like a great idea :smile: . We should evaluate other syntactical variants of this though, especially in sight of future directions the nyan language may head.
Example:
This is the correct solution so far, am I wrong ?
If you try to do this:
Then the stack of calculation would be:
However there could be something like defer which would move the operation to the end:
And then there would be two stucks: