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 OAA02126; Fri, 23 Apr 2004 14:18:37 +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 OAA02145 for ; Fri, 23 Apr 2004 14:18:35 +0200 (MET DST) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3NCIYYM031201 for ; Fri, 23 Apr 2004 14:18:34 +0200 X-Sasl-enc: 8to5kBuoEL3N0ryMbkaglw 1082722712 Received: from [192.168.1.100] (unknown [218.81.124.114]) by mail.messagingengine.com (Postfix) with ESMTP id DE094A91729 for ; Fri, 23 Apr 2004 08:18:30 -0400 (EDT) Date: Fri, 23 Apr 2004 20:18:21 +0800 (HKT) From: Martin Jambon X-X-Sender: martin@localhost To: caml-list@inria.fr Subject: [Caml-list] Suggestion: Pervasives.identity 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; pervasives:01 pervasives:01 black:98 readable:01 jambon:02 jambon:02 external:03 compiled:05 seems:05 suggestion:06 fun:08 function:09 magic:09 ignore:12 yet:12 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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? Martin ------------------- 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