|
|
|
|
|
by foldr
923 days ago
|
|
C didn’t require extensions to write a function that takes as its parameters an array of integers and the length of the array. Looking into this again (after ~30 years!) I see that ISO Pascal did have an optional 'conformant arrays' feature that could handle this kind of basic case, but it was far less flexible (albeit safer) than C's array handling, and wasn't implemented by all compilers. I’m not sure where you are seeing 'Pascal naysayers'. I’m just pointing out an issue with the language that may have affected adoption. Neither Pascal nor C really got arrays 'right', but C never got in your way. |
|
That optional extension became part of the ISO Extended Pascal revision, for example.
To make it clear should we compare Go's ability to write generic code versus other languages, using 1.21 or 1.0 version?