Which of C's two member operators applies is a question the compiler can already answer -- (.length v) and (.length p) have picked & or * off the receiver's type since methods moved into the head -- so making the programmer answer it again asks them to restate what semen knows, and to revisit every reader of a field the day it becomes a pointer. A path resolves a step at a time, since only the type in hand answers for the next field. A receiver nothing can type is read as a value and warned about rather than refused: refusing leaves no spelling at all for a struct out of a header nobody has parsed. Two things had to come along. A parameter written (p * struct point) was recorded with nothing but the `*' for a type, which left half the paths in list-macros unanswerable. And fmt-c parenthesised a member access written inside another, which went unnoticed while only match nested them -- its bindings have been reading ((s.u).circle).r since sums went in.
14 KiB
14 KiB