3 ms·
In Go, i++/i-- is a statement, not an expression, so that doesn't work. More generally, assignment is always a statement, and never an expression (e.g. you can
by nordsieck 8y ago
In Go, i++/i-- is a statement, not an expression, so that doesn't work.
More generally, assignment is always a statement, and never an expression (e.g. you can't say a = b = c)