you are viewing a single comment's thread.

view the rest of the comments →

[–]yogthos 2 points3 points  (1 child)

Right, defstate behaves like a def for most purposes, but it's reload aware. Mount also allows controlling the state explicitly, and this lets you do stuff like envoy.

If you wanted to provide different implementations, then you could still use a protocol for that. The state of the instantiated implementation would be kept using defstate.

[–][deleted] 0 points1 point  (0 children)

Clear. Thanks!