caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] optional functions in modules
@ 2012-05-10 12:22 Yitzhak Mandelbaum
  2012-05-10 14:13 ` "Markus W. Weißmann"
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Yitzhak Mandelbaum @ 2012-05-10 12:22 UTC (permalink / raw)
  To: OCaml mailing list

Hi,

Is there any "common wisdom" regarding the inclusion of optional functions in a module signature?  The two most obvious approaches involve 1) a pair of boolean flag and a function, where the function raises an exception if unimplemented OR 2) using the option type. I see pros/cons to each approach, but am curious if there's any (unofficial) standard approach.

Yitzhak
-----------------------------
Yitzhak Mandelbaum





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-05-18 20:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-10 12:22 [Caml-list] optional functions in modules Yitzhak Mandelbaum
2012-05-10 14:13 ` "Markus W. Weißmann"
2012-05-10 14:53 ` Fabrice Le Fessant
2012-05-10 14:59   ` David Rajchenbach-Teller
2012-05-10 18:44 ` Goswin von Brederlow
2012-05-11  0:55   ` Yaron Minsky
2012-05-17 17:43     ` Yitzhak Mandelbaum
2012-05-18 15:24       ` David Rajchenbach-Teller
2012-05-18 16:00         ` Gabriel Scherer
2012-05-18 20:05           ` Nicolas Braud-Santoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).