On Thursday, August 18, 2016 at 5:53:14 AM UTC+12, MRAB wrote:

> C uses "->" for dereferencing a pointer to the member of a struct.

The only reason why “s->f” was added was because “(*s).f” was considered an 
unwieldy thing to have to write all the time.

And the only thing that made that unwieldy was that pointer dereferencing was a 
prefix operator, rather than postfix as in Pascal.

> Pascal, on the other hand, dereferences with a postfixed "^", so that 
> would be "p^.m".

And you will notice that nobody felt the need for an alternative form to 
abbreviate that.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to