From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 80FA67F2E5 for ; Wed, 9 Jan 2013 04:48:42 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.176; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.176 as permitted sender) identity=mailfrom; client-ip=134.160.33.176; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.176 as permitted sender) identity=helo; client-ip=134.160.33.176; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuICAP3n7FCGoCGwfGdsb2JhbABFgy6LMK13A4EdDgEBCxYFPYJdQD0WGAMCAQIBSw0IAQGIEwyYW541jRwDg3YDiF+NLYVrjWE X-IronPort-AV: E=Sophos;i="4.84,435,1355094000"; d="scan'208";a="167810442" Received: from postman4.riken.jp (HELO postman.riken.jp) ([134.160.33.176]) by mail4-smtp-sop.national.inria.fr with ESMTP; 09 Jan 2013 04:48:37 +0100 Received: from postman.riken.jp (postman4.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id EDF588280D8 for ; Wed, 9 Jan 2013 12:48:33 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 6B9267F8040 for ; Wed, 9 Jan 2013 12:48:33 +0900 (JST) Message-ID: <50ECE88D.9000905@riken.jp> Date: Wed, 09 Jan 2013 12:48:29 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: caml-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2013.1.9.33616 Subject: [Caml-list] some beautiful OCaml code The code is here: https://raw.github.com/orbitz/blog_post_src/master/intro_return_t/ex5.ml There is a full blog post about it there: http://functional-orbitz.blogspot.se/2013/01/introduction-to-resultt-vs-exceptions.html Regards, F. PS: I'm not the author of this beauty