thank you for the information
On Mar 1, 5:09 pm, "Michel S." <michel.syl...@gmail.com> wrote:
> On Mar 1, 11:02 am, "Michel S." <michel.syl...@gmail.com> wrote:> On Feb 28,
> 6:16 pm, linh <nguyenlinh.m...@gmail.com> wrote:> hello,
> > > what's the common idiom in functional programming regarding checking
> > > the validity of arguments to functions. i think this is called
> > > defensive programming vs contract programming.
>
> > Mostly defensive, I think. Some languages (e.g. PLT Scheme) have
> > contracts:http://docs.plt-scheme.org/guide/contracts.html
>
> Also, constructs such as Haskell's Maybe monad (available in clojure-
> contrib) simplifies doing defensive programming on a chain of
> computation.
>
> Which reminds me. We have no error monad yet (not as important since
> Clojure has Java exceptions, though).
>
> --
> Michel S.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---