DISQUS

Virtuous Code: [ANN] alter-ego 1.0.0 Released

  • nicholas a. evans · 11 months ago
    Nice!
  • Dan Kubb · 11 months ago
    This looks pretty nice. I was curious tho, have you looked at Mixology? I was thinking that the state blocks could setup anonymous modules, and instead of the handle blocks you could use normal methods. Each module would correspond to a specific state and get mixed into the object as part of each state transition.
  • avdi · 11 months ago
    It's an approach I've considered, and I may move towards it, although I'm pretty sure I want to stay compatible with explicit state classes. One of the items on the TODO list, however, is being able to define ordinary ordinary methods in state { } blocks instead of using #handle.
  • drnic · 11 months ago
    Looks very clean and nice!
  • drnic · 11 months ago
    Looks very clean and nice!