clojure-android / neko

The Clojure/Android Toolkit
Other
297 stars 36 forks source link

Idiomatically return nil rather than throwing an exception immediately in get-resource #12

Closed AdamClements closed 10 years ago

AdamClements commented 10 years ago

Return nil if resource is not found in get-resource, get-drawable or get-string rather than throwing an exception deep in the code allowing e.g. (or (get-drawable key) (get-drawable :default))

alexander-yakushev commented 10 years ago

Seems reasonable! I commited it as 998e317, thank you.