Skip to content

galdre/servator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

servator

An experiment in 'no-cost' observer patterns. I'd like an n-pass macro expansion mechanic, but since I don't have that, I'll start with an attempt to exploit my least favorite aspect of multimethods -- behavior can changes based on some code existing somewhere and you have no idea where!

Usage

(signal :some-scope/some-signal
  (reduce +
          (do-something)))
		  
(observe :some-scope/some-signal
         (fn [payload]
		     (do-something-with-payload payload)))

Examples.

License

Copyright © 2018 Timothy Dean

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Experimental 'no-cost' observer pattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors