On Dec 19, 4:27 pm, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> While we are talking about assert: I recently wanted for assert to  
> return the value of the expression, so I could embed asserts inside a  
> Fact test and get detailed reporting about what failed.
>
> I checked a few other functional languages and none of their asserts  
> return a value either. This surprised me.

My feeling about assert is that if it fails it means that a program is
broken.

> Should assert return its value? If not, what should I name the  
> function that works just like assert but returns its value?

I think I'd call it "expect".
--~--~---------~--~----~------------~-------~--~----~
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
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