News for hackers. Stuff that matters.
Re:Ask HN: What one change in C would make it a better langu... by DLA on Thursday July 27, 2023 @08:03AM (#36892211)
Bounds checks on arrays/strings. This would prevent the largest class of errors (buffer overflows) seen in C code.
Re:Ask HN: What one change in C would make it a better langu... by Shawnj2 on Thursday July 27, 2023 @11:36AM (#36895161)
There’s a lot of cases where they wouldn’t work because passing a pointer to an element is the same as passing an array reference.