|
![](/i/fill.gif) |
Wait... you're kidding me.
In Haskell, you can write
foo = some function of bar
bar = some function of foo
But apparently in Ocaml, this produces a compile-time error, since when
foo is defined, bar hasn't been defined yet. Apparently you have to write
let rec foo = some function of bar
and bar = some function of foo
In other words, YOU have to manually resolve all circular dependencies
by hand.
WTF?
(I remind you, this is functional programming and recursive definitions
are ubiquitous...)
Post a reply to this message
|
![](/i/fill.gif) |