4 ms·
There is another way: Common Lisp and smalltalk both have resumable exceptions (although they’re more limited in smalltalk): in an interactive environment, if t
by fiddlerwoaroof 6y ago
There is another way: Common Lisp and smalltalk both have resumable exceptions (although they’re more limited in smalltalk): in an interactive environment, if the exception isn’t handled, you drop into a debugger that lets you pick a recovery strategy. If something like this were standard on phones, you wouldn’t get stuck in a boot loop and Android could provide the option to enable dev mode or check the internet for a solution.
- DaiPlusPlus 6y agoYou can configure a JVM to pause whenever an exception is first-thrown and prompt to attach a debugger. Same with the CLR. I think Windows lets you do it with any program that uses SEH too.
- SilasX 6y agoYeah but to most users, getting some cryptic console they can implement a workaround in ... isn’t much better.
- fiddlerwoaroof 6y agoIt doesn’t need to be cryptic, a screen that says something like “enable dev mode” “attempt to fix from computer” (along with a desktop program for modifying settings) “check for updates” “reset to defaults” would be friendly enough
- _emacsomancer_ 6y ago(In a better world, Android was written in Common Lisp.)
- pjmlp 6y agoNewton almost had it.