3 ms·
Relevant in 2009, relevant today: C's biggest mistake: https://www.digitalmars.com/articles/C-biggest-mistake.html https://www.digitalmars.com/articles/C-bigges
by kortex 5y ago
Relevant in 2009, relevant today: C's biggest mistake: https://www.digitalmars.com/articles/C-biggest-mistake.html https://www.digitalmars.com/articles/C-biggest-mistake.html
C uses (pseudo)fat pointers all the time, any time an array(pointer) is passed with size (as a second argument). It's just not as hygienic. Just think of all the dev hours, all the painful debugging, all the exploits prevented, if in the 80's they put out a stdlib with a fat pointer buffer type. Can't argue they didn't know better, as plenty of languages had them by then.
- pjmlp 5y agoLanguages already had them in 1950's, e.g. JOVIAL, but is was more fun to create their own.