Maybe I look at this thing from an application developer pov and not from a core-developer. I will study more the internals but actually will go beyond my scope... anyway I like uPython and eager to contribute (positively I hope).
@pythoncoder: An infinite loop is not a crash
It will not generate any exception and is not what I am asking. I am just saying that the behavior on Exception COULD (not MUST) be a reboot instead to get back to interpreter waiting for user input. This is what NodeMCU does. therefore I assume it will be possible (not saying easy) in uPython.
The exceptions are:
- Out Of Memory: even in micropython is possible to have leaks
- Any code/math/name/ I/O errors etc exceptions: still possible to have bugs in production code
And I found more easy to handle them rebooting rather than considering all possible exceptions. Resources are very scarce on ESP and more code for exceptions means less code for application.
Pfalcon could add something about this subject? Or should I go for the core-development forum for this discussion?
Thanks in advance
PS: I am perfectly aware that a very bad loop can deflagrate in a bad coded application: a very short cycle of run-exception-reboot. Again this is bad coding but a reboot in production is better than an infinite hang. This is my experience as a developer.