> Passing around state via variables is no more tedious
But it is - the programming language is now repeatedly quizzing you on something you've already told it.
But it is - the programming language is now repeatedly quizzing you on something you've already told it.
method(state){
return doSomething(state)
}
Or this: class A:
otherThingThatMutatesState1()
otherThingThatMutatesState2()
otherThingThatMutatesState3()
method(){
this.state += 1 // or some other mutation
}