Version française
Home     About     Download     Resources     Contact us    
Browse thread
Having '<<', why to use '|>' ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Fabrice Marchant <fabrice.marchant@o...>
Subject: Re: [Caml-list] Having '<<', why to use '|>' ?
On Tue, 18 Sep 2007 00:24:07 +0200
Julien Moutinho <julien.moutinho@gmail.com> wrote:

> Hi,
> 
> % cat f.ml4
> let ( << ) f g x = f @ g x
> 
> % camlp4of -impl f.ml4
> File "ghost-location", line 1, characters 0-2:
> Quotation not terminated

 Thanks for this.

 I didn't knew "camlp4of", staying cowardly with a 3.09 on a debian lenny (no camlp4-extra package).

> Just to point out that << interferes with the quotations of Camlp4,
> so maybe it is not really wise to use it.

  That is actually a problem indeed. What could be safely used as a composition operator instead ?
( <<< ) ? What else ?

Regards,

Fabrice