Version franaise
Home About Download Resources Contact us
Browse thread
right-associating infix application operator camlp4 extension
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stephane Glondu <Stephane.Glondu@c...>
Subject: Re: [Caml-list] right-associating infix application operator camlp4 extension
On Wednesday 10 August 2005 20:04, Quc Peyrot wrote:
> Thanks a lot for the answers.
> Strangely I couldn't find $ in this documentation, but
> let ($) f x = f x
> seems to work.

You can use $ as an infix operator according to:
http://caml.inria.fr/pub/docs/manual-ocaml/manual009.html

And it is left-associative, as said in:
http://caml.inria.fr/pub/docs/manual-ocaml/manual015.html

But as far as I understood, Haskell's $ is right-associative.

-- 
Stephane Glondu