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
There's a new tech report on contract checking for Haskell that might be interesting too -- I've just started reading it: www.cl.cam.ac.uk/techreports/UCAM-CL-TR-737.pdf Regards, -- 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 -~----------~----~----~----~------~----~------~--~---