> (let [person (get-the-person)]
> (when-not (nil? person)
> (let [address (.getAddress person)]
> (when-not (nil? address)
> (let [street (.getStreet address)]
> (when-not (nil? street)
> (do-something-finally-with-street street)))))
>
?-> sounds potentially useful to me, but let me also point out that
you could simplify the above to:
(when-let [person (get-the-person)]
(when-let [address (.getAddress person)]
(when-let [street (.getStreet address)]
(do-something-finally-with-street street))))
Not quite
(?-> (get-the-person) #(.getAddress %) #(.getStreet %) do-something)
but it's halfway there at least.
Info on contributing is here:
http://clojure.org/contributing
The first step is to get your CA signed and in the mail.
Thanks,
Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---