side effect?
Yes
i++ is a side effect, but a very local one, so you might not care about that. SetState(i) can be a side effect, but might not be, it depends on what the function does. But if it is NOT a side effect, the call does nothing, since you don't do anything with the return value of the function.
Обсуждают сегодня