Don't use exceptions for flow control:
http://c2.com/cgi/wiki?DontUseExceptionsForFlowControl
 
Depending on you perspective, calling last on an empty sequence is:
   
   - A mistake -> You should check the sequence before you call last. 
   Otherwise you might depend on exceptions for flow control.
   - Correct -> You don't like an exception, but like a nil return. 
   Otherwise you are forced to depend on exceptions for flow control.

 
 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to