Browse thread
[Caml-list] ocaml and large development projects
[
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: | Siegfried Gonzi <siegfried.gonzi@s...> |
| Subject: | Re: [Caml-list] Reading a file |
Siegfried Gonzi wrote: >> >> my request: split "nil,2.23,3.34,nil" (-1.0) = [-1.0,2.23,3.34,-1.0] > > > > sorry: split "nil,2.23,.3.34,nil" ',' This is one of the reasons why I do not get it that nobody annotates types in OCaml. If I had to deal with a Clean function I would not have made the mistake of using split in a wrong manner, because: split:: String Char -> [String] split s c .... but in OCaml: split s c ... I agree the compiler would rebel if I pass wrong types, however, this does not increase readability as opposed to Clean. S. Gonzi ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners