|
|
|
|
|
by neilc
6400 days ago
|
|
A Prolog program is not specified in terms of a "sequence of steps", for example. Of course, the implementation involves a sequence of operations (because it is typically going to be evaluated on a Von Neumann-style machine), but that has nothing to do with the semantics of the program. OO does not require that your code be executed any more sequentially than does a functional language. If by "OO", you mean mainstream OO languages like Smalltalk or Java, then they absolutely do have a more operational definition than a pure functional language does. Objects send messages to other objects; as a result of receiving a message, the internal state of an object changes. |
|
An object-oriented program is not required to be expressed in terms of a "sequence of steps" any more than is a functional program. You can instantiate objects that talk to one another, asynchronously or otherwise, to collaboratively do work.