On Mar 12, 2009, at 9:45 PM, Mark Volkmann wrote:
On Thu, Mar 12, 2009 at 5:04 PM, Stephen C. Gilardi <squee...@mac.com> wrote:I like these: .?. -?>
Given a choice between the two, I'd choose -?>
The proposal was for naming "nil-safe" versions of the existing .. and -> functions.
(-> nil (. toString)) ==> NullPointerException (-?> nil (. toString)) ==> nil (.. nil (toString)) ==> NullPointerException (.?. nil (toString)) ==> nilNote: these are just simple examples. The point isn't the one argument, literal nil case, but the case where many operations are "chained" or "threaded" and at each point the propagated result may be nil.
--Steve
smime.p7s
Description: S/MIME cryptographic signature