English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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
Hello.

> 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: http://bitbucket.org/gds/ops/src/tip/ops.ml (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).