|
|
Darren New escreveu:
> nemesis wrote:
>> More OO, or more assemblyish? I mean, you individually feed the stack
>> and then call a function using those arguments already in the stack. ;)
>
> Well, no, it's not a stack, it's an object. And each call can, for
> example, set error codes or throw exceptions or some such. So if there's
> no letter-sized paper loaded
It's a saved stack, let's say.
> Kind of like the whole command/query separation. A bit more verbose,
> but also more clear and maintainable. (Command/query separation is
> basically that only functions that don't return a value are allowed to
> modify the object. Or, in C++ terms, all non-const methods must be void.)
I don't like the whole OO BS. Despite being submitted to it daily for
the last 20 years or so. Functional programming and scripting too
opened my eyes to a much better model for software programming.
Post a reply to this message
|
|