Glyph on Nostr: OK so I am done with the new Automat interface. Just need to write unit tests. Very ...
OK so I am done with the new Automat interface. Just need to write unit tests. Very happy with @state.transition(Protocol.method, other) def implementation(...):...
except, oops, it's tedious to keep writing out all these 'return None, but with an elaborate signature' implementations, I should have a shortcut for that…
Oh, it would be nice to do some method chaining, maybe? like state.to(other).upon(Protocol.method)? And then I could say state.to(other).upon(Protocol.method).returns(None)?
except, oops, it's tedious to keep writing out all these 'return None, but with an elaborate signature' implementations, I should have a shortcut for that…
Oh, it would be nice to do some method chaining, maybe? like state.to(other).upon(Protocol.method)? And then I could say state.to(other).upon(Protocol.method).returns(None)?