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
F# lightweight syntax for Ocaml with camlp4 - possible?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-08 (01:33)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] F# lightweight syntax for Ocaml with camlp4 - possible?
On Tuesday 08 May 2007 00:43, Daniel Bünzli wrote:
> In a language where you don't enclose function arguments in parens I
> think this is really a bad idea, it makes the code more confusing
> than readable, especially if you try to code with a line width of 80
> columns.

As a hardcore OCamler, I must say that I had thought the #light syntax in F# 
to be morally repugnant. However, now that I've forced myself to actually use 
it, I'm finding it to be very useful indeed.

Perhaps the single most important reason why the #light syntax is useful stems 
from the way the F# Visual Studio add-in allows you to execute lines or 
blocks of code in a running interactive session. I'd love to see something 
similar for OCaml but, until then, I don't think the #light syntax would have 
quite the bite for OCaml that it does for F#.

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The F#.NET Journal