Join Nostr
2025-04-17 15:44:54 UTC
in reply to

DougMerritt (log😅 = 💧log😄) on Nostr: nprofile1q…7lcw2 I seriously doubt it. Dennis Ritchie and others made C arrays ...


I seriously doubt it. Dennis Ritchie and others made C arrays semi-equivalent to pointers because of very strong design goals; they were not unaware of stronger models for arrays, they were simply working with a small slow CPU.

There have been many efforts to extend C with e.g. array references that carry bounds information that is checked upon every reference, and many consider such things to be an improvement despite the runtime hit they inherently cause.

But those extended languages are not C.

E.g. the C dialect Cyclone: https://en.wikipedia.org/wiki/Cyclone_(programming_language)

https://en.wikipedia.org/wiki/List_of_C-family_programming_languages