But state is managed separately from logic pretty much anywhere where you don't store lambdas as fields of structs.