DEV Community

Discussion on: You Either Have It Or You Don't

Collapse
 
gklijs profile image
Gerard Klijs

I'll both like the Java Optional which you can use when at runtime there might not be anything. It has a nice API to work with it. But the Clojure way of returning nil when the argument is nil works also well in most cases, but can sometimes cause weird errors as it's not always fine to pass nil.