Fixing C's Biggest Mistake
Walter Bright
newshound2 at digitalmars.com
Tue Jan 3 08:49:55 UTC 2023
On 1/2/2023 1:50 PM, claptrap wrote:
> That's a logically flawed argument because it rests on the assumption that the
> only possible way to handle a null when converting from a nullable to a
> non-nullable is to abort the program.
I never said "only possible way". However, it is the usual case. Now, if the
*user* checks a pointer for null, and it isn't, then it won't seg fault from
subsequent use.
> It's also a strawman because it also misses the point that its not about what
> you do with the null, but knowing where they might get in. Statically knowing
> where the external doors are.
Indeed, that is a difference. I've rarely had any actual trouble tracking it
back to its source, though.
More information about the Digitalmars-d
mailing list