News for hackers. Stuff that matters.
Re:Fixing C by mfukar on Tuesday April 12, 2016 @12:40PM (#11481091)
This discussion won't get very far if all you think arrays are is syntactic sugar. The array type is useful - think in terms of a static analyser if it helps - in different ways than pointers.
Re:Fixing C by cyphar on Tuesday April 12, 2016 @07:47PM (#11484575)
"array syntax" != "arrays". He means things like a[i]. Arrays are only really arrays in their local scope, if you pass them to functions they suddenly are pointers (but for some insane reason, C compilers let you specify "the size of the array in a function argument" which doesn't actually compile to any code).