Closed jwbrew closed 6 years ago
List.foldl (\a b -> b a) () [] does not generate a compiler error and instead spawns multiple processes and consumes all the CPU.
List.foldl (\a b -> b a) () []
I assume It has something to do with the fact that the type definition for the anonymous function is recursive, a -> b -> (a -> (a -> (a -> ....
a -> b -> (a -> (a -> (a -> ...
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
Thanks for the report, @jwbrew. Looks like this will be fixed when 0.19 is released :)
List.foldl (\a b -> b a) () []
does not generate a compiler error and instead spawns multiple processes and consumes all the CPU.I assume It has something to do with the fact that the type definition for the anonymous function is recursive,
a -> b -> (a -> (a -> (a -> ...
.