caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: akay@sharp.co.uk (Andrew Kay)
To: caml-list@inria.fr
Subject: OCaml infix function-composition
Date: Fri, 2 Oct 1998 11:26:34 +0100	[thread overview]
Message-ID: <199810021026.LAA27738@byrd.sharp.co.uk> (raw)


Dear caml-list,

We are in the process of converting our Caml code into OCaml, and
have a problem choosing an infix syntax for function composition
(right to left, as in (fun f g x -> f (g x))).  Previously we used "o"
for this, but I believe we cannot make "o" an infix operator in
OCaml, nor ".", which was our second choice.  We are considering "<<"
and "$" now.

What do other OCaml people use for function composition?  Is there a
standard emerging?  If we choose an operator, how can we be sure that
our selection won't be upset by the next version of OCaml?


Thanks

Andrew Kay

Sharp Labs Europe Ltd, Oxford Science Park, Oxford, UK, OX4 4GA
Andrew.Kay@sharp.co.uk  Tel:+44 1865 747711 FAX:+44 1865 747717





                 reply	other threads:[~1998-10-02 14:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199810021026.LAA27738@byrd.sharp.co.uk \
    --to=akay@sharp.co.uk \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).