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=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id ACF2ABC69 for ; Fri, 19 Oct 2007 07:23:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAANfbF0fAXQImh2dsb2JhbACOUAIBCAoplEc X-IronPort-AV: E=Sophos;i="4.21,298,1188770400"; d="scan'208";a="18331852" Received: from discorde.inria.fr ([192.93.2.38]) by mail4-smtp-sop.national.inria.fr with ESMTP; 19 Oct 2007 07:23:18 +0200 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l9J5NH0Q018106 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Fri, 19 Oct 2007 07:23:17 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAANfbF0fa1uFinmdsb2JhbACOUAIBAQcEBhEYlEc X-IronPort-AV: E=Sophos;i="4.21,298,1188770400"; d="scan'208";a="3327655" Received: from smtp.syd.people.net.au ([218.214.225.98]) by mail1-smtp-roc.national.inria.fr with SMTP; 19 Oct 2007 07:23:15 +0200 Received: (qmail 18926 invoked from network); 19 Oct 2007 05:23:22 -0000 Received: from unknown (HELO hendrix.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 19 Oct 2007 05:23:22 -0000 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id 33AEDAB1AF for ; Fri, 19 Oct 2007 15:23:13 +1000 (EST) Date: Fri, 19 Oct 2007 15:23:11 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: [Caml-list] Re: Help me find this pdf Message-Id: <20071019152311.25cdf410.mle+ocaml@mega-nerd.com> In-Reply-To: References: <200710181457.58077.jon@ffconsultancy.com> <47176C28.1090509@janestcapital.com> <200710181818.31430.jon@ffconsultancy.com> Reply-To: caml-list@inria.fr Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.4.5 (GTK+ 2.12.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Miltered: at discorde with ID 47183F45.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 haskell:01 haskell:01 wrote:01 caml-list:01 lazy:02 lazy:02 match:02 pattern:04 erik:04 erik:04 matching:05 basically:10 actually:10 bernard:10 Bárður Árantsson wrote: > What you're saying is basically that lazy pattern matching should only > force as much of the value under examination as is actually necessary to > decide if there's a match. Do I have that right? > > If so, then Haskell does exactly this. But haskell is lazy by default so of course it does it right. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas." -- George Bernard Shaw