|
|
|
|
|
by tcfhgj
222 days ago
|
|
> If I erroneously try to operate on a null pointer, I created an exception. This is only true if some library/framework you use creates an exception for you. Why do you operate on a null pointer in the first place? Well, you didn't because you painted something in the wrong color, but because you passed a null pointer to a piece of code, which should not have received a null pointer. |
|
No. That's like saying you can't have errors unless you language/library/framework has an error datatype. Quite possibly the stupidest thing I've ever heard. A language doesn't need exception data structures or exception handlers for a programmer to violate a rule of the computing environment.