From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 9E542BBAF for ; Sun, 3 Oct 2010 00:46:01 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjoCAMpSp0zRVda2kGdsb2JhbACDHp8aCBUBAQEBCQkMBxEDH6lMiQiIWYhlgSKDLnQEijyFZQ X-IronPort-AV: E=Sophos;i="4.57,272,1283724000"; d="scan'208";a="59910956" Received: from mail-iw0-f182.google.com ([209.85.214.182]) by mail3-smtp-sop.national.inria.fr with ESMTP; 03 Oct 2010 00:46:01 +0200 Received: by iwn10 with SMTP id 10so567000iwn.27 for ; Sat, 02 Oct 2010 15:46:00 -0700 (PDT) Received: by 10.231.15.9 with SMTP id i9mr7756288iba.58.1286059560026; Sat, 02 Oct 2010 15:46:00 -0700 (PDT) MIME-Version: 1.0 Sender: hcarty@mulethief.com Received: by 10.231.171.203 with HTTP; Sat, 2 Oct 2010 15:45:39 -0700 (PDT) In-Reply-To: References: From: "Hezekiah M. Carty" Date: Sat, 2 Oct 2010 18:45:39 -0400 X-Google-Sender-Auth: C9GDvnzujyxIo2EDt317QDvkCXw Message-ID: Subject: Re: [Caml-list] why is the forward pipe operator (>|) so little used? To: ben kuin Cc: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; ocaml:01 ocaml:01 blog:98 imho:01 wrote:01 caml-list:01 defined:02 library:03 readability:05 style:93 standard:07 likely:08 quite:08 batteries:91 feature:09 On Sat, Oct 2, 2010 at 2:22 PM, ben kuin 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 =C2=A0up on blogposts or on > stackoverflow, its =C2=A0presented 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