2 ms·
It may be debatable, but in D we've used it for 20 years and problems with it have yet to crop up. And indeed, it makes refactoring code far easier.
by WalterBright 3y ago
It may be debatable, but in D we've used it for 20 years and problems with it have yet to crop up. And indeed, it makes refactoring code far easier.
- paulddraper 3y agoNot directly to syntax, but D null pointer safety is weird IMO. It checks array access bounds, but segfaults for null pointers. Seems an odd choice, and there are multiple discussions of people saying the same.
- WalterBright 3y agoNull pointers are automatically checked by the hardware (seg fault). Adding another runtime check is redundant. Yes, I know, adding a huge fixed offset to the pointer can push it past the null protected pages.
- brundolf 3y agoRust makes them the same too (though its type system eliminates the fallibility issue)