4 ms·
A Haskell developer?
by arethuza 7y ago
A Haskell developer?
- joshmn 7y agoOuch.
- Nevermindmyview 7y agoI'll bet a choklate bar that 100% of all developers who spent 6 year using Haskell knows what a for-loop is.
- jerf 7y ago"for" is not that complicated, it's just mapM with its arguments pre-flipped: http://hackage.haskell.org/package/base-4.12.0.0/docs/Control-Monad.html#v:forM http://hackage.haskell.org/package/base-4.12.0.0/docs/Contro... I don't know why you want to call that a "loop", but, sure, you do you, you crazy imperative programmers.
- hutzlibu 7y agoBecause it is a loop in any sane language ... you overheaded functional programmers .. edit: Sigh. I was jockingly mocking.
- s_dev 7y agoHaskell just enforces iteration through recursion. How did he solve the iteration problem? A for loop is just syntactic sugar for a while loop.
- hutzlibu 7y agoI doubt there are many Haskell developers (or one at all) without a academic background ..
- alephu5 7y agoI'm a self-taught developer with haskell in my arsenal, although that being said I have an MSc in theoretical physics which probably helps me appreciate the power of its paradigm.
- hutzlibu 7y agoSo you do have a academic background (especially math)..
- tasuki 7y agoThere definitely are! Eg Jezen Thomas. Hopefully in the future also myself :)
- hutzlibu 7y agoYou are sure he was never at a university? And why are you drawn to Haskell? For me I only had to deal with it a bit at university and I found the concept interesting, but could not imagine non math people to use it for anything as a language of choice
- tasuki 7y agoI'm not sure he never was at university, I just assume not [1]. > why are you drawn to Haskell? I just want my programs to work. I've seen too many null pointer exceptions and other runtime errors. Runtime errors = bad. Compile errors = good. [1]: https://news.ycombinator.com/item?id=20112065 https://news.ycombinator.com/item?id=20112065
- hutzlibu 7y ago"I just want my programs to work" Me too ... And I think imperative languages are way more easy and clear to read and write. I allways imagined that you have to be a math nerd to prefer Haskell, but apparently this guy is not a math guy, but loves Haskell .. so ok, good counterpoint.
- tasuki 7y ago> And I think imperative languages are way more easy and clear to read and write. Because it's what you've had exposure to. Perhaps, they're even objectively easier to read and write, I don't know. It's also completely besides my point. My point was that I want my programs to work as desired. That's orthogonal to how easy it is to read and write. I don't want runtime exceptions where I could've gotten a compile-time error.
- 7y ago
- inflatableDodo 7y agoHi. Not an academic. Currently fiddling around with OpenGL on Haskell, for reasons.