From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 3197EBBC7 for ; Tue, 7 Apr 2009 23:33:33 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai8GAGxj20nZSMDdZGdsb2JhbACBUpRcCwMODwW4AoN7Bg X-IronPort-AV: E=Sophos;i="4.38,431,1233529200"; d="scan'208";a="27243157" Received: from fmmailgate01.web.de ([217.72.192.221]) by mail1-smtp-roc.national.inria.fr with ESMTP; 07 Apr 2009 23:33:32 +0200 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id C2A95FF8D182; Tue, 7 Apr 2009 23:33:32 +0200 (CEST) Received: from [78.43.226.218] (helo=frosties.localdomain) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1LrIvE-0006EN-00; Tue, 07 Apr 2009 23:33:32 +0200 Received: from mrvn by frosties.localdomain with local (Exim 4.69) (envelope-from ) id 1LrIvD-0000hb-NE; Tue, 07 Apr 2009 23:33:31 +0200 From: Goswin von Brederlow To: peng.zang@gmail.com Cc: caml-list@yquem.inria.fr, David MENTRE , Goswin von Brederlow , caml-list@inria.fr Subject: Re: [Caml-list] Subtyping References: <873aclf1z8.fsf@frosties.localdomain> <3d13dcfc0904070041l5d59ec76nc97643fc862f334c@mail.gmail.com> <200904070939.46583.peng.zang@gmail.com> Date: Tue, 07 Apr 2009 23:33:31 +0200 In-Reply-To: <200904070939.46583.peng.zang@gmail.com> (Peng Zang's message of "Tue, 7 Apr 2009 09:39:43 -0400") Message-ID: <877i1wtahg.fsf@frosties.localdomain> User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.21 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: goswin-v-b@web.de X-Sender: goswin-v-b@web.de X-Provags-ID: V01U2FsdGVkX1/ZqEZgogR9i0r7iMu3hYrY+JA9UTDqjzlmugmE wyZA+9OnZzskqrN5zzJ2tzkQmMp9s0Lly86bSlYoVEwSnF2TNV 3SX5QF/Ek= X-Spam: no; 0.00; subtyping:01 ocaml:01 ocaml:01 idioms:01 cheers:01 peng:98 peng:98 2009:98 2009:98 48,:98 mfg:98 wrote:01 wrote:01 caml-list:01 imperative:01 Peng Zang writes: > On Tuesday 07 April 2009 03:41:32 am David MENTRE wrote: >> Hello, >> >> On Tue, Apr 7, 2009 at 07:48, Goswin von Brederlow > wrote: >> > In the last 2 weeks I've been playing around with lots of different >> > ways to do the same thing to get a feel for what style suites me >> > best. If you have improvements or alternative ways of doing the two >> > things below let me know. >> >> Well, if you are learning OCaml, I would advise you to read regular >> OCaml code, e.g. the standard library. You'll learn The Right OCaml >> Style(tm). > > Certainly reading the standard library is good. Useful for learning > techniques, idioms, etc.. I wouldn't say that there is one Right OCaml > Style(tm) though. Actually part of why I like OCaml is that it supports > imperative, object oriented and functional paradigms and you can switch > between them depending on the task. Exactly. And so far I've been kind of stuck with one or the other so I wanted to see how things look using different paradigms in ocaml. > Cheers, > > Peng MfG Goswin