4 ms·
Yeah, it's a... choice is the best way to put it. It has upsides and downsides. I do think supporting mutual recursion is very important. People expect it to s
by munificent 9y ago
Yeah, it's a... choice is the best way to put it. It has upsides and downsides.
I do think supporting mutual recursion is very important. People expect it to simply work, especially in an object-oriented language. It does work out of the box in JavaScript, Python, Ruby, and Lua. (And note that also none of those will detect access to undefined variables until runtime.)
Early versions of my main hobby language Wren did detect this error statically but it ended up interacting poorly with the REPL and I became convinced it didn't provide enough value to justify the static checking.
The main thing that tipped the scales for me was that Scheme works this way. That seems like a pretty reasonable path to follow for a dynamically typed language.