Posted Feb 4, 2010 18:25 UTC (Thu) by tjc
In reply to: Syntax flubs
Parent article: GCC to merge Go support
I agree, using '@' as an indirection operator would work. But it looks funny, especially as a postfix operator. I would probably get used to it.
I better like the idea of separating declaration syntax from expression syntax and using '*' as a postfix pointer declarator and '' as an infix indirection operator, like this:
var p *int;
var a *int;
[p] = 1;
[a] = 1;
I guess I could call this "square lisp" syntax. :)
 This really isn't infix, since the operand is infix, not the operator, but I don't know the correct term for this form.
to post comments)