4 ms·
> There is no null pointer value. > • Reading from an uninitialized object field triggers a runtime error How is this a better option? The side doesn't mention
by jimktrains2 7y ago
> There is no null pointer value.
> • Reading from an uninitialized object field triggers a runtime error
How is this a better option? The side doesn't mention the alternative to null. Option types?
Also, what does a runtime error mean in this context? Restart of the whole application? Part of the application? Whole devices stops?
- all2 7y ago> Reading from an uninitialized object field triggers a runtime error Can we catch errors? If so, then this isn't so much an issue.
- jimktrains2 7y agoHow is that different than a null pointer exception will all it's downsides?
- bdowling 7y agoThe slides indicated they were contemplating very small systems without an MMU or memory protection. Without those, a null pointer dereference may not be able to generate an exception.
- jimktrains2 7y agoRun time check, just like what happens here, I suppose.