From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA04971; Tue, 23 Dec 2003 21:33:28 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA29135 for ; Tue, 23 Dec 2003 21:33:26 +0100 (MET) Received: from bob.west.spy.net (mail.west.spy.net [66.149.231.226]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hBNKXPv11732 for ; Tue, 23 Dec 2003 21:33:25 +0100 (MET) Received: from [192.168.1.50] (dustinti.west.spy.net [192.168.1.50]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client did not present a certificate) by bob.west.spy.net (Postfix) with ESMTP id E405158C6; Tue, 23 Dec 2003 12:33:20 -0800 (PST) In-Reply-To: <20031223165224.GB9202@davidb.org> References: <1072152186.59938.30.camel@tylere> <20031223162004.GA25221@iliana> <20031223165224.GB9202@davidb.org> Mime-Version: 1.0 (Apple Message framework v609) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2FE5C370-3587-11D8-9A95-000393CB0F1E@spy.net> Content-Transfer-Encoding: 7bit Cc: Brian Hurt , Tyler Eaves , caml-list@inria.fr, Sven Luther From: Dustin Sallings Subject: Re: [Caml-list] Frustrated Beginner Date: Tue, 23 Dec 2003 12:32:54 -0800 To: David Brown X-Mailer: Apple Mail (2.609) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 habit:01 unambiguous:01 cae:99 debug:01 vim:01 her:97 wrote:03 let:04 fingerprint:04 stuff:05 stuff:05 needing:06 dec:07 i'm:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Dec 23, 2003, at 8:52, David Brown wrote: > Plus there are some places where let () = ... in makes things easier, > since it allows multiple expressions after a then or else without > needing a begin/end wrapping. I've been getting in the habit of doing this kind of thing: if (expression) then ( stuff ) else ( other stuff ) It gives me % matching in vim, allows me to insert debug statements when I'm screwing up, and looks fairly clean and unambiguous. -- SPY My girlfriend asked me which one I like better. pub 1024/3CAE01D5 1994/11/03 Dustin Sallings | Key fingerprint = 87 02 57 08 02 D0 DA D6 C8 0F 3E 65 51 98 D8 BE L_______________________ I hope the answer won't upset her. ____________ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners