From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p0LDnfam015688 for ; Fri, 21 Jan 2011 14:49:41 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvYCAF8dOU1V6aAZkGdsb2JhbACEE5IEMY4cFQEBAQEJCQwHEQMhrgKQRYEkgzh0BIsfgyU X-IronPort-AV: E=Sophos;i="4.60,358,1291590000"; d="scan'208";a="96192395" Received: from outgoing-smtp.namesco.net ([85.233.160.25]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Jan 2011 14:49:36 +0100 Received: from [192.168.0.13] (helo=scary.hosts.co.uk) by outgoing-smtp.namesco.net with esmtp (Exim 4.67) (envelope-from ) id 1PgHMr-0001Fr-HJ for caml-list@yquem.inria.fr; Fri, 21 Jan 2011 13:49:34 +0000 Received: from root by scary.hosts.co.uk with local (Exim 4.69) (envelope-from ) id 1PgHMs-0000RF-IV for caml-list@yquem.inria.fr; Fri, 21 Jan 2011 13:49:34 +0000 To: From: Reply-To: MIME-Version: 1.0 X-Mailer: Namesco Webmail v3.0 Message-ID: <1295617774936@names.co.uk> Date: Fri, 21 Jan 2011 13:49:34 +0000 Content-Type: text/plain; charset="UTF-8" X-namescosender: 0 2002 X-namesco: 192.168.0.171 X-Spam-Score: -1.0 (-) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p0LDnfam015688 Subject: Re: [Caml-list] writing some code using a function for which only the signature is known For anything more than toy examples, it's better to use Dmitry's solution of a specially defined exception, because you certainly don't want the exception to get caught before it reaches the top level, but Assert_failure or Failure are liable to get caught if you write code with exception handling. This is assuming, of course, that you're not using nasty catch-all exception handling in your code. Mark. on 21/1/11 5:41 AM, Francois Berenger wrote: > Hello, > > If I am writing some code, and I don't want to dive > into implementing some sub function I will need but don't > have yet, what is the standard way to do this in ocaml? > > In python, there is the pass keyword, Haskell has some > keyword which I don't remember for this also. > > Sorry for the dumb question maybe, I am returning to ocaml > after a too long absence. :) > > Regards, > Francois. > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > >