caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Hezekiah M. Carty" <hcarty@atmos.umd.edu>
To: ben kuin <benkuin@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] why is the forward pipe operator (>|) so little used?
Date: Sat, 2 Oct 2010 18:45:39 -0400	[thread overview]
Message-ID: <AANLkTimScFyANZjn0cei5SWexJ=qU=EgaLtgT9bk4QEb@mail.gmail.com> (raw)
In-Reply-To: <AANLkTime9KkhtrobQv53gxgPvr2mYyz3Z9dZRwuyaax8@mail.gmail.com>

On Sat, Oct 2, 2010 at 2:22 PM, ben kuin <benkuin@gmail.com> wrote:
> hi
> Reading a few introduction F# articles and presentations I made the
> observation that the forward pipe operator is widely popular. Its also
> a language feature that, when it comes  up on blogposts or on
> stackoverflow, its  presented as a special F# feature.
> In the Ocaml world the pipe doesn't have a special place. I doesn't
> come up in any of the Ocaml Books (print or pdf) and hardly any
> internet articles or blog posts. For example Jon Harrop mentions the
> pipe in one of his F# books but not in the Ocaml for Scientists book.
> Looking at the mentioned F# code, I think the usage of the pipe has an
> ( imho positive) impact on the style and the readability of the code.
> But obviously the proficient Ocaml folks don't use it - could someone
> may explain the reason(s)?
> thanks
> ben
>

Ben,

A ( |> ) operator is provided in Batteries.  I use it quite
frequently.  I expect that others do as well.

That said, most books stick to the standard library.  It is therefore
less likely that they would use such an operator unless it is defined
in the text of the book.

Hez


  reply	other threads:[~2010-10-02 22:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-02 18:22 ben kuin
2010-10-02 22:45 ` Hezekiah M. Carty [this message]
     [not found] <1595278357.2147341.1286043752455.JavaMail.root@zmbs4.inria.fr>
2010-10-03 14:15 ` [Caml-list] " Thomas.Gazagnaire
2010-10-03 15:57   ` Yaron Minsky

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='AANLkTimScFyANZjn0cei5SWexJ=qU=EgaLtgT9bk4QEb@mail.gmail.com' \
    --to=hcarty@atmos.umd.edu \
    --cc=benkuin@gmail.com \
    --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).