agora
agora copied to clipboard
Make increment and decrement an expression?
Right now the compiler allows a := b++. Either disallow this notation, or make ++ and -- expressions (and then support prefix form too?)
Please disallow it. 'b++' is an assignment. I find assignments within expressions difficult to read and wrap my brain around. When assignments are statements, it's easy to see the sequence of events. See http://golang.org/doc/faq#inc_dec.