Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

Make increment and decrement an expression? #5

Open
mna opened this issue Sep 7, 2013 · 1 comment
Open

Make increment and decrement an expression? #5

mna opened this issue Sep 7, 2013 · 1 comment
Milestone

Comments

@mna
Copy link
Owner

mna commented Sep 7, 2013

Right now the compiler allows a := b++. Either disallow this notation, or make ++ and -- expressions (and then support prefix form too?)

@luther9
Copy link

luther9 commented Sep 22, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants