3 ms·
> R will often do something instead of explicitly failing. I mentioned exception handling above, but this is more specifically the problem. I think it's a har
by doodledoodahs 3y ago
> R will often do something instead of explicitly failing.
I mentioned exception handling above, but this is more specifically the problem.
I think it's a hard problem to solve, because the behaviour of older libraries is so varied.
I have sometimes thought that something like a try catch wrapper which pattern matched or tested the value returned would be useful.
- hadley 3y agoI have noodled on this problem a bit in https://github.com/hadley/strict https://github.com/hadley/strict, which I'm contemplating bringing back to life over the coming year. It's certainly very difficult to cover 100% of all possible problems, but I suspect we can get good coverage of the most common failure points (specifically around recycling and coercion) with a decent amount of work.