2 ms·
It's more for consistency. You can still forget to use a not_null.
by halayli 11y ago
It's more for consistency. You can still forget to use a not_null.
- johncolanduoni 11y agoNot if you're calling into an API that uses not_null; it will automatically insert the null check.
- halayli 11y agoMy point is that you can easily forget to declare a pointer as not_null and revert back to the old habit of declaring it as int*. The responsibility is still on the programmer.