tap is a replacement for using pr for debugging - libraries generally shouldn’t
be using it indiscriminately.
If you do have multiple things putting values into tap, they can tag their
values appropriately.
--
You received this message because you are subscribed to the Google
Groups "Clojure"
Not sure why two wouldn't compose. You should probably wrap values in
namespaced maps and dispatch with multimethods for your add-tap handlers. You
could probably do pub sub pretty easy over that.
But I'd like to see more examples with tap too. What alternative design were
you thinking of?
--
At first glance, tap seems like it doesn't compose well; two Clojure
libraries that use tap for different purposes can't be combined.
What is the reasoning behind having one global tap, rather than some sort
of pub/sub model?
--
You received this message because you are subscribed to the Google