error-message-catalog icon indicating copy to clipboard operation
error-message-catalog copied to clipboard

better guidance for stack overflows

Open dandrake opened this issue 3 years ago • 0 comments

This is from https://discourse.elm-lang.org/t/avoiding-rangeerror-maximum-call-stack-size-exceeded/8023: I wrote a program with a recursive function that seemed like it ought to be tail-recursive, but it wasn't, and when running it, I would get RangeError: Maximum call stack size exceeded -- or, sometimes in the browser, simply nothing would happen (this was in Firefox, compiled with elm 0.19).

See the above discussion for details. As a newbie Elm user, it would be nice to get an error message that mentioned excessive recursion, tail recursion, and so on. I do understand the connection between the call stack and recursive functions, but being a little more explicit about the connection would have led me to a solution/workaround faster.

dandrake avatar Dec 27 '21 16:12 dandrake