2 ms·
Too-easy conversion between arrays and pointers is one such criticism, but such conversion was essential to its success. Could you elaborate on this point? Wal
by chongli 4y ago
Too-easy conversion between arrays and pointers is one such criticism, but such conversion was essential to its success.
Could you elaborate on this point? Walter Bright famously wrote [1] that C's biggest mistake is that it implicitly degrades arrays to pointers when you pass them as arguments to functions. Do you have a rebuttal to his piece? I am not a C expert so I honestly don't know what could be wrong with his proposal.
[1] https://www.digitalmars.com/articles/C-biggest-mistake.html https://www.digitalmars.com/articles/C-biggest-mistake.html
- ncmncm 4y agoThe failing there is that it is implicit. It didn't need to be.