Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Do-While description #1

Open
sergeyqz opened this issue Mar 13, 2022 · 1 comment
Open

Fix Do-While description #1

sergeyqz opened this issue Mar 13, 2022 · 1 comment

Comments

@sergeyqz
Copy link
Owner

u/moon-chilled wrote:

[x] u ^: v^:_ y

This is not quite right. Recall that conjunctions are left-associative. So u^:v^:_ is (u^:v)^:_, not u^:(v^:_). Then, the 'do-while' behaviour is simply an idiomatic form resulting from existing behaviours: when v returns 0, u will be applied to its operand 0 times, acting as an identity, so the ^:_ will terminate.

So the current description is

execute u repeatedly until v^:_ returns 0

while it should be

execute u repeatedly until v returns 0

The problem is that in the table we have v^:_ as a RMO (right modifying operator, IIRC), so it gets substituted as a whole.

@sergeyqz
Copy link
Owner Author

Right now I don't see how we can fix it without adding an exceptional case. Maybe it's a sign that there's no need to generate descriptions from separate column values anymore and just freeze the table and then edit it directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant