Re: Indentation (was Re: [Caml-list] What does Jane Street use/want for an IDE? What about you?)

2008-10-26 Thread Martin Jambon
Daniel Bünzli wrote: > > Le 26 oct. 08 à 01:08, Martin Jambon a écrit : > >> In performance-critical code or maybe imperative code in general, it >> feels good to control when closures are created. In such cases, avoiding >> local functions helps. > > Just to be clear, naming your anonymous func

Re: Indentation (was Re: [Caml-list] What does Jane Street use/want for an IDE? What about you?)

2008-10-26 Thread Daniel Bünzli
Le 26 oct. 08 à 01:08, Martin Jambon a écrit : In performance-critical code or maybe imperative code in general, it feels good to control when closures are created. In such cases, avoiding local functions helps. Just to be clear, naming your anonymous function locally (which is what is r

Indentation (was Re: [Caml-list] What does Jane Street use/want for an IDE? What about you?)

2008-10-25 Thread Martin Jambon
Daniel Bünzli wrote: > > Le 25 oct. 08 à 14:43, Martin Jambon a écrit : > >> Now I generally tend to use this: >> >> let x = >> List.map ( >>fun z -> >> very_blabla >> ... >> ) my_list >> in > > I think the best solution is to name your anonymous function, as the > guidelines sug