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
What does Jane Street use/want for an IDE? What about you?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-25 (12:50)
From: Martin Jambon <martin.jambon@e...>
Subject: Re: [Caml-list] What does Jane Street use/want for an IDE? What about you?
DooMeeR wrote:
> Another possibility is:
> let x = List.map begin fun z ->
>  very_blabla
> end my_list in
> It's quite compact, doesn't run into the margin, is consistent with
> tuareg, but might be less readable.

Now I generally tend to use this:

let x =
  List.map (
    fun z ->
  ) my_list

I find that the most significant barrier is of psychological nature.
This formatting of parentheses is unnatural in natural languages and in

Other than that, it's no different from curly braces as used in the
C-like syntaxes.

The additional 2 or 3 lines are generally negligible and introduce some
vertical spacing which improves readability.