Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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