Hi,

  * This is the time I've heard "the one who's feeding the channel is the
one in charge of closing it" -- previously, my channel code was fairly
ad-hoc and agressive (since I need to kill many (go-loop [msg (<! ... )]
(when msg ...)) blocks).

  * I still feel this breaks the "conveyor belt" metaphor -- when a
conveyor belt shuts down, it's understandable that we after we take what's
on the belt, in future takes, we get nothing.

  However, when putting items on a stopped conveyor belt, messages should
not just *poof* vanish into the void. :-)

  * This existing semantics makes debugging annoying (perhaps this is due
to my lack of skill). When something should be happening, and nothing is
happening, I'm basically going around hunting for "where did I do a put on
a closed channel", whereas if it threw an exception of some form, it'd be
easier to handle then this "silent fail."




On Thu, Jan 23, 2014 at 3:50 AM, Meikel Brandmeyer (kotarak) 
<[email protected]>wrote:

> Hi,
>
> probably the idea is, that the one who's feeding the channel is the one in
> charge of closing it. After all, they know when there is no more input
> available. Do you have a use case where this problem manifests? Or is that
> just a vague fear that it might happen?
>
> Kind regards
> Meikel
>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to