News for hackers. Stuff that matters.
Re:Everyday hassles in Go by bstpierre on Tuesday December 30, 2014 @11:42AM (#8815302)
I found ocaml to be a more flexible alternative -- I can sprinkle printf for quick debugging without having to alter types. (I think this is what you mean by "having to use the IO monad". I didn't work with haskell much, so it's possible there's an easy way around this there.) And stack traces in ocaml are reasonable, though not quite as verbose as python's.

But your point about needing to install extra packages stands for either language.

Re:Everyday hassles in Go by kxs on Tuesday December 30, 2014 @12:26PM (#8815565)
You should look into Debug.Trace for quick printf-like debugging. Usage: trace ("error occurs here") (f x)
Re:Everyday hassles in Go by gnuvince on Tuesday December 30, 2014 @02:04PM (#8816065)
OCaml is currently my language of choice. I love functional programming, been doing it for a while now, but it's nice to know that if I read an algorithm in a textbook, I can just implement it as-is instead of doing a translation to be purely functional (and sometimes having to fight to get back the asymptotic complexity). The module system is also absolutely great, and should be copied shamelessly by more languages.
Re:Everyday hassles in Go by Peaker on Tuesday December 30, 2014 @02:53PM (#8816356)
Haskell doesn't ban imperative programming, it simply distinguishes it in the types.
Re:Everyday hassles in Go by gnuvince on Tuesday December 30, 2014 @03:04PM (#8816424)
True, what I mean is that I can be "messy" in OCaml for the sake of expediency. In principle, I prefer Haskell's clean approach, in practice I'm a bad programmer who sometimes does naughty things.
Re:Everyday hassles in Go by Peaker on Tuesday December 30, 2014 @03:12PM (#8816476)
Well, Haskell does force you to go and update your types about your effects, and fix the use sites to do proper lifting.

I don't feel this costs much, though, so even in quick&dirty mode, I feel that Haskell is quite productive enough.