News for hackers. Stuff that matters.
Re:A convenient untruth: Array notation in C is a lie by bogomipz on Thursday December 22, 2016 @01:16PM (#13239144)
Thanks for the clear explanation. This makes sense. I do have a tangential question.

I have read that the reason for this declaration syntax is that it was easier form compilers and compiler writers to parse.

How does this declaration syntax facilitate parsing exactly? I fail to see why this is.

Re:A convenient untruth: Array notation in C is a lie by bluetomcat on Thursday December 22, 2016 @01:31PM (#13239263)
The advantage is that you don't introduce any new operators or syntactic forms which would only be used in declarations. This means a smaller set of tokens and a smaller set of syntactic forms. Being able to parse an expression like

    (*arr[i])(42)
means that you can use pretty much the same machinery to parse

    int (*arr[SIZE])(int a)
Re:A convenient untruth: Array notation in C is a lie by bogomipz on Thursday December 22, 2016 @05:01PM (#13240757)
This is awesome. Thank you.