caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Suggestion: Pervasives.identity
@ 2004-04-23 12:18 Martin Jambon
  2004-04-23 12:56 ` Xavier Leroy
  2004-04-23 15:48 ` Brian Hurt
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Jambon @ 2004-04-23 12:18 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-04-24  2:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-23 12:18 [Caml-list] Suggestion: Pervasives.identity Martin Jambon
2004-04-23 12:56 ` Xavier Leroy
2004-04-23 13:26   ` Martin Jambon
2004-04-23 15:48 ` Brian Hurt
2004-04-23 16:26   ` Richard Jones
2004-04-24  2:09   ` skaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).