3 ms·
The problem with bounds errors is that it brings little value for a correct program and there are better ways to help with correctness than a runtime error (but
by wruza 2y ago
The problem with bounds errors is that it brings little value for a correct program and there are better ways to help with correctness than a runtime error (but that transcends Lua-like langs).
Looking at python, it’s more often and irritating to convert to .get() after an error than receiving an error and realizing it was helpful. Code that optimistically assumes non-null results rarely survives few next lines after getting nulls anyway.