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
infix operator for the revised syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-11-30 (18:51)
From: artboreb@n...
Subject: infix operator for the revised syntax
Dear Camlers,

I've failed do do a syntax extention to the
revised syntax in order to get a *real* infix operator
for function concatenation in order to avoid
excessive parenthesis.

example with lists (silly)

let ( $ ) f g = g (f);; (* provided by normal syntax works fine *)

let r = List.map ... a_list $ List.sort ... $ List.fold_left ... in ..
(* that's i whant to write with the revised syntax *)

let r = List_fold_left ... ((List.sort ...) List.map ... a_list) in ..

thanks in advance
Arturo Borquez

Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp