On Mon, Jul 15, 2019 at 02:10:05PM +0100, Jack Rosenthal wrote: > On Mon, 15 Jul 2019 at 08:47 -0400, Hendrik Boom wrote: > > On Mon, Jul 15, 2019 at 01:22:20PM +0100, Jack Rosenthal wrote: > > > One of my gripes from writing and reading (reviewing) C code on a daily > > > basis is that I have a hard time remembering the precedence of the > > > operators beyond PEMDAS. Things get murky when trying to figure out the > > > order of the other operators. And as soon as you start allowing infix, > > > you better allow extending it, for better or worse. > > > > The one I always have trouble with is the precedence between prefix * and > > postfix []. There would have been no confusion if both had been postfic > > operators. Mind you, then they might have had to use a different symbol > > for > > dereference to avoid confusion with multiplication. > > *p++
Pascals postfix ^ for this right. p++^ or p^++ p[1]^ or p^[1] Of course in C we'd then need a new symbol for xor. -- hendrik -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/20190715133501.wdno5lvddmfavftg%40topoi.pooq.com. For more options, visit https://groups.google.com/d/optout.