On 01/04/2020 23:40, Thomas Beale wrote:
> Hi Alex,
>
> I was just contemplating this:
> |⟳c:s ¦print (
c.name)⟲|
>
> Why not just use the initial symbol, and forget the final one, i.e.
> |⟳c:s ¦print (
c.name)|
>
> That seems more consistent with the other operators.
This could only work if we restrict this notation to only
one instruction. So the following:
⟳ c: s ¦ print (
c.name); print ("%N")
would be a loop followed by an instruction to print a newline
(and not a loop with two instructions).
Personally, this would have my preference. I think that I already
suggested something along these lines to ISE. After all, the
symbolic form of loops is already at subset of what could be
expressed with the `across` form (e.g. no loop variant and
invariants). So this restriction on the number of instructions
should not be so much of a problem: if one wants more, just
use the `across` form.
--
Eric Bezault
mailto:
er...@gobosoft.com
http://www.gobosoft.com