POV-Ray : Newsgroups : povray.off-topic : Ocaml : Re: Ocaml Server Time
4 Sep 2024 11:19:37 EDT (-0400)
  Re: Ocaml  
From: Invisible
Date: 5 Feb 2010 10:13:50
Message: <4b6c35ae$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.