by mejutoco · 4y ago · 0 comments
It is informative, I see what you mean. Let me try again following your terms: An object is a type plus behaviour (mutable state).
An object is a term-level construction and therefore is not really comparable to a type. Types can be given to both state and behaviour. For example, a function type describes pure behaviour.
Note that statically-typed OOP languages have a name for the nominal types of objects: "classes". One could say that a class is a type representing both state and behaviour.