Hacker News new | ask | show | jobs
by krisdol 2907 days ago
clojuredocs[0] has some good examples. I more often use when-some or if-some over when-let or if-let, mainly because I'm processing over collections and I want to do something to the result only if the collection isn't empty (and the function I want to call doesn't like being called with nils or empty collections).

Ultimately it's a convenience macro. Saves you a nesting level.

[0]: https://clojuredocs.org/clojure.core/when-let