tylr
tylr copied to clipboard
Runtime error when re-inserting then-token
A runtime error I encountered while playing around in the june version:
- enter a conditional like
if x then y else z
- remove
then
, so it becomesif x|y else z
- enter a space and move left to make
if x| y else z
- attempt to enter
then
- observe runtime error:
Async_kernel: Unhandled exception (Failure "impossible: bin encountered empty or singleton stack")
And maybe this is a separate bug, but if you go
4. enter then
(without a leading space) to make if x|then y else z
5. separate x
from then
with a space to make if x |then y else z
6. observe that the then
is not recognized as a keyword and remains in the backpack