Browse thread
Re: [Caml-list] Dequeues (was Generation of streams is slow)
-
Krishnaswami, Neel
- Chris Hecker
- Chris Hecker
-
Brian Rogoff
- Alexander V. Voinov
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Alexander V. Voinov <avv@q...> |
| Subject: | [Caml-list] indent 2 |
Hi All,
Is the indentation with the step 2 a _must_ for those who program in
OCaml? I got used 4, and already set all the necessary variables for
caml-mode, so that I get:
let count_range bt lwb upb =
let bti = (IVB.from_to bt lwb upb) in
let rec count1 bti n =
if IVB.ok bti then begin
match IVB.next bti with
Some (k, v, b) ->
(printf "in count1 %d %d %b\n" k v b); flush stdout;
let n' = if b then n + 1 else n in
count1 bti n'
| None -> raise (Failure "this cannot happen")
end
else
n
in
count1 bti 0
Is this horrible/terrible/tolerable/appropriate?
Alexander
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr