Handle enumeration of infinite types properly #309
Labels
A-Confirmed
Definitely a bug
C-Moderate Effort
Should take a moderate amount of time to address.
S-Nice to have
Minor importance
U-Interpreter
U-Type Checking
Z-Feature Request
Since Disco is now strict, calling
enumerate
on an infinite type simply hangs as it tries to strictly construct an infinite list.We should either (1) disallow
enumerate
on infinite types, or potentially (2) changeenumerate
so it returns a functionN -> a
(and makelist
do what the oldenumerate
did?).The text was updated successfully, but these errors were encountered: