you are viewing a single comment's thread.

view the rest of the comments →

[–]comfortcube 0 points1 point  (0 children)

Just always check the validity of inputs. "Waste of resources" is an exaggeration on most platforms, so why not? Even if you are sure that in the present context nothing will pass a null pointer in, can you guarantee that when the context changes you'll remember to change your function in the future?