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 RAA18867; Fri, 23 Apr 2004 17:44:29 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA18785 for ; Fri, 23 Apr 2004 17:44:28 +0200 (MET DST) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3NFiQYM029105 for ; Fri, 23 Apr 2004 17:44:27 +0200 Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.11.6/8.10.1) with ESMTP id i3NFiER13957; Fri, 23 Apr 2004 10:44:15 -0500 (CDT) Date: Fri, 23 Apr 2004 10:48:56 -0500 (CDT) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Martin Jambon cc: caml-list@inria.fr Subject: Re: [Caml-list] Suggestion: Pervasives.identity In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 pervasives:01 pervasives:01 stupid:01 black:98 readable:01 jambon:02 external:03 wrote:03 redirect:95 compiled:05 seems:05 suggestion:06 brian:06 brian:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 23 Apr 2004, Martin Jambon wrote: > Hello, > > Is there a good why there is no predefined identity function? > (fun x -> x) is sometimes less readable, and seems to be not > compiled (yet?) as this black magic: > external identity : 'a -> 'a : "%identity" > > In the same style, we already have Pervasives.ignore, so why not > Pervasives.identity? > > Possibly stupid question: what use would this function be? -- "Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it." - Gene Spafford Brian ------------------- 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