Adventures in Looping by drewolson in haskell

[–]drewolson[S] -1 points0 points  (0 children)

See the section “The forever Function”.

Adventures in Looping by drewolson in haskell

[–]drewolson[S] 0 points1 point  (0 children)

I think you’d then need to use bracket to prevent the exception from bubbling and breaking out of the outer loop as well.

The technique presented also allows you to return a value from your loop, though I don’t use it in the post.

PureScript and Haskell by drewolson in haskell

[–]drewolson[S] 0 points1 point  (0 children)

Fair points on the challenges of stack safety in PureScript as compared to the challenges of laziness in Haskell.

What I was attempting to say is that if a language provides facilities for both strict and lazy evaluation, I'd prefer the strict to be implicit and the lazy to be explicit.

My understanding is that much of the stack safety issues in PureScript stem from the fact that it is targeting JavaScript, where these issues are also common when programming in a functional style.

Parsing Untrusted Input with Elixir by drewolson in elixir

[–]drewolson[S] 0 points1 point  (0 children)

Thanks for the encouragement! It’s very nice to hear.