Browse thread
Ocaml compiler features
[
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: | Edgar Friendly <thelema314@g...> |
| Subject: | Re: [Caml-list] Ocaml compiler features |
Richard Jones wrote: > On Fri, Jan 12, 2007 at 11:37:21PM -0600, Edgar Friendly wrote: >> if y=1 then >> let z = 2 in >> print_int y; >> print_int z; >> else >> print_string "not one" > > Hmmm .. changing the precedence of operators to avoid two parentheses ... > I don't think that's good. No, I want to make the following code legal: if y = 1 then print_int y; print_int z; else print_string "not one" It's just an unnecessary stumbling block for programmers coming from other languages. E.