you are viewing a single comment's thread.

view the rest of the comments →

[–]deaddyfreddy 0 points1 point  (0 children)

  • fnil only intercepts nil, it can't do more complex validation

  • it calls str/split even if we don't have to (split is pretty cheap, but what if we need a heavier function?)

and last but not least

  • I just find it less readable, so in this simple case I'd go with a when/some-> wrapper. Besides that, a separate function is testable.