Thanks Alex!

Correct, the channel implementation takes care that "transduced" channels 
always pass elements through the transducer and the buffer. Also, a 
FixedBuffer allows running out of limit for those cases, see this example 
with a FixedBuffer of size 1 making space for 4 elements:

(def c (chan 1 (mapcat seq)))
=> #'psdk.hack-config/c

(put! c "hola")
=> true

(-> c .buf .buf)
=> (\a \l \o \h)

However, the blocking semantics of a channel change if a buffer is 
enforced. You can't have a "transduced" channel for which all puts will 
block for a take. Not sure if this is too limiting for any practical case.

For the case of expanding transducers, I am not sure if there would be 
sensible semantics for channel operations without a buffer.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/a652870b-59c2-40f9-b4e0-7387e87de204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to