Running Ocamlbrowser with OCaml 3.11.2 on Cygwin 1.72

After building OCaml 3.11.2 from source on Cygwin 1.72 I tried running ocamlbrowser and got the error:

Fatal error: exception Protocol.TkError("Can't find a usable init.tcl in the following directories:
C:/cygwin/share/tcl8.4
C:/cygwin/home/rettkeg/ocaml/build/ocaml-3.11.2/share/tcl8.4
C:/cygwin/home/rettkeg/ocaml/build/ocaml-3.11.2/usr/share/tcl8.4
C:/cygwin/home/rettkeg/o

The solution is can be found here:

export TCL_LIBRARY=/usr/share/tcl8.4

Is it "poor taste" to include type information in function definitions?

I had wondered:

Is it “poor taste” to include type information in function definitions?
It seems like very nice documentation, but then again, maybe it is nicer rely on the inferencing engine to reduce the amount of code?
In theory you write short, easy to understand functions; in practice it isn’t always this simple though.

People kindly replied:

When you can avoid it, it is better to NOT include type information. Using a tool like “ocamldoc” will render the function and its inferred types in a real documentation format (e.g. HTML).
There are cases where you need to include type information, but they are corner cases.

Sylvain

Interface files (.mli) are usually the main place for documentation. Within the .ml files, you can explain your algorithms but it’s usually just plain comments, not so much type annotations.

Martin

As to the matter of “taste”, note that this practice is not idiomatic in Ocaml, in contrast to Haskell where it seems current. I’m not sure if that’s your case, but people coming to Ocaml from Haskell may at first tend to exaggerate on this aspect…

Dario

Using VirtualBox for OCaml

I would like to try out OCaml. From what I have read, though, it is only happy running on UNIX. Without a UNIX box at the moment I decided to try out Sun’s VirtualBox with Ubuntu.
Setup, configuration, and installation took less than an hour. Directories can easily be shared between the host and the guest (Windows XP and Ubuntu in this case), which is convenient for me because I share my Bazaar checkout folder. The NAT network adapter is configured “out of the box”. Everything “just worked”; it was a really pleasant experience.
These days there really aren’t many obstacles to running, or even just trying out, Linux.