Hacker News new | ask | show | jobs
by dpassen1 4461 days ago
Agreed. Seems like a very unnecessary addition.
1 comments

The non-nil checks are particularly useful in core.async code as nil is a special value for channels (indicating they've been closed). This family of functions can be used to more concisely determine if a value from a channel is a value or means "close".
Thanks!