Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Option functions (or lack thereof) + operator for composition
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-16 (14:19)
From: dmitry grebeniuk <gdsfh1@g...>
Subject: Re: [Caml-list] Option functions (or lack thereof) + operator for composition

> So I have to learn the precedence and associaticity table in section 6.7 of
> OCaml's reference manual!!!

  I usually redefine (&) operator: let ( & ) f x = f x
  It's ok until you don't use JoCaml which defines keyword "&".
  Also take a look at other infix operators I use, maybe you found them
useful too: (comments are
in russian and in OCaml, I'll translate russian text to english at first
request, it's not hard for me, but it seems that OCaml code in comments
describes the usage well enough).