Closed MattWindsor91 closed 2 years ago
Fixed an alternative way, by using the solution to #74 to get rid of the :
. We do still have a bit of a difficulty whereby there's inconsistency with loop N (xyz) { abc }
and assertion N: abc
, but maybe that's ok because the {
implies the same sort of 'this is the body coming' that :
does.
The syntax
loop X: BOUND
is clunky, especially with regards to the fact that it can sometimes safely have the:
removed. I wonder if a more natural syntax might beloop BOUND as X
:This works nicely, but then the question appears of how we get a consistent syntax between this and other things. Maybe
...as X
for optionally named things andX:
for named things. Unsure.