Comparing oomoore to moore
The
oomoore package accomplishes the same intent as the
moore
package.
Here are some comparisons between the two packages.
-
The moore package uses an object oriented approach based on
namespace ensembles where oomoore uses TclOO.
If you are not running Tcl 8.6, then you must use moore or
you must use the TclOO package that back ports to 8.5.
-
While the moore package works well, it is a rather over engineered
solution.
It is not as convenient to use, uses some rather heavy weight data
structures in its implementation and also is more difficult to have
data associated with the state machines. By using a state model as
a superclass, oomoore can be used to give state behavior to
any other TclOO class.
Regardless of which package you may use, the
workflow
suggestions still apply and
oomoore makes it much easier to
fit within a TclOO design.
Previous