Browse thread
[Caml-list] OCaml Speed for Block Convolutions
[
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: | Patrick M Doane <patrick@w...> |
| Subject: | Re: [Caml-list] OCaml Speed for Block Convolutions |
On Wed, 6 Jun 2001, William Chesters wrote: > Hugo Herbelin writes: > > Assume more generally that you can modify any local variable as in the > > (standard) following example: > > > > let fact (mutable n) = > > let mutable r = 1 in > > while n > 0 do > > r <- r * n; > > n <- n - 1 > > done; > > r > > This doesn't actually make life much easier for the compiler. Even if there's no benefit to the compiler, I think there is a benefit to the programmer. I would much rather write imperative code with that syntax. Patrick ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr