12-16-2020, 09:28 AM
(This post was last modified: 12-16-2020, 09:29 AM by dale walton.)
Thanks for this.
It would also be good in the section on forEach iteration to note that the scope of iteration is solely the move part of the construct, and does not extend to the (then ...) at the end. -- and that the scope of the iterator variable is not for the entire forEach operation, but is only available to the main move action within it.
These points are obvious when you know how the language works, but for people who don't yet understand, such comment can provide guideposts for starting to understand.
Related scope questions:
So if using (do ... next:( ... )) is the site iterator available to both the part after the do and the part after the next? I assume it is not available to the ifAfterwards condition as that sounds like it is related to consequences.
What does (last To) refer to within the next: section ? does it refer to the (to) in the move before the (do...), or to the (to) in first move of the (do...), or to the (to) in last consequence in the (do...) ?
It would also be good in the section on forEach iteration to note that the scope of iteration is solely the move part of the construct, and does not extend to the (then ...) at the end. -- and that the scope of the iterator variable is not for the entire forEach operation, but is only available to the main move action within it.
These points are obvious when you know how the language works, but for people who don't yet understand, such comment can provide guideposts for starting to understand.
Related scope questions:
So if using (do ... next:( ... )) is the site iterator available to both the part after the do and the part after the next? I assume it is not available to the ifAfterwards condition as that sounds like it is related to consequences.
What does (last To) refer to within the next: section ? does it refer to the (to) in the move before the (do...), or to the (to) in first move of the (do...), or to the (to) in last consequence in the (do...) ?