News for hackers. Stuff that matters.
Re:OCamlScript – a JavaScript back end for OCaml by cannam on Friday January 08, 2016 @06:35AM (#10864181)
Also a fair point, and I take your implication that the effect of a change to the outer loop syntax would probably be lost in the noise. It just struck me that using ref cells and loops feels like a concession to writing Javascript-style code in the first place (I grant in this particular case it makes the code more obvious) and I wondered how much difference it actually makes. Is the compiler able to flatten a fold into a similar loop? Or do you get a readable fold call in the JS code and, if so, is it much slower? Or neither?

There are no comments on this comment yet.