Re:Writing a C compiler in 500 lines of Python
by tom_ on Tuesday September 05, 2023 @09:30AM
(#37391393)
I've found struct fields that are pointers far more common than pointers to pointers to structs, so if nothing else it feels like *(p->target) is a more widely useful interpretation of *p->target than (*p)->target would be.
Regarding "n = -5", it would presumably be interpreted as "n=-5", same as today. Operators don't have spaces in them. So "n- -5" is "n-(-5)" (n+5), rather than "n--5" (not valid).
Regarding "n = -5", it would presumably be interpreted as "n=-5", same as today. Operators don't have spaces in them. So "n- -5" is "n-(-5)" (n+5), rather than "n--5" (not valid).