Currently rep n {...} loops forever if n is negative or not a whole number. This is because it’s implemented using a loop that only terminates when eq? n 0.
Generally the game is unfun when bugs are hard to spot. stdlib functions should typecheck and throw early.
Currently
rep n {...}
loops forever ifn
is negative or not a whole number. This is because it’s implemented using a loop that only terminates wheneq? n 0
.Generally the game is unfun when bugs are hard to spot. stdlib functions should typecheck and throw early.