Re:Hakaru: An embedded probabilistic programming language in...
by elwell on Thursday September 11, 2014 @08:25PM
(#8306000)
Haskell bears very little resemblance to traditional pseudo-code, compared to something like JavaScript.
[ Parent
| on HN ]
Re:Hakaru: An embedded probabilistic programming language in...
by the_af on Thursday September 11, 2014 @08:28PM
(#8306015)
True. Traditional pseudo-code tends to be imperative.
I think you'll face a similar problem with Clojure :)
Re:Hakaru: An embedded probabilistic programming language in...
by eru on Saturday September 13, 2014 @05:26PM
(#8313658)
Since the example used Monads, it was rather imperative.
Re:Hakaru: An embedded probabilistic programming language in...
by the_af on Saturday September 13, 2014 @06:48PM
(#8313887)
Monads aren't really imperative, though the syntax sugar sometimes looks like it, but in any case that's too fine a point. You know what I meant. Pseudocode usually looks like this:
x := 1
while (x < 100)
stuff(x)
x := x + 1
etc, etc. Typical Haskell doesn't look like this. The example didn't look like this. Clojure won't look like this, either (in fact, it's likely to look even weirder than the Haskell example). That's neither good nor bad; I don't think programming languages should be judged by how much they resemble C/Pascal/Python/pseudocode.