|
|
|
|
|
by doktrin
4359 days ago
|
|
Thanks for your response. I'd like to dive a little deeper into the basis for these claims. My current stance is that there isn't sufficient reason to adopt Haskell for use in production. > Write software faster with fewer bugs Is there an evidentiary basis for the 'fewer bugs' claim? What type of software are people writing faster with Haskell? >> easier to maintain down the road because the "mental model" is maintained in the types by the compiler That seems fair. >> it's more succinct, it's fast In isolation, that's a bit hand wavy IMO. >> some of the world's brightest computer scientists work on it This is something I hear quite often from the Haskell community in particular. It may or may not be true, but it gets repeated far too often IMHO. It feels like a bit of an appeal to authority. |
|
http://donsbot.wordpress.com/2007/05/01/roll-your-own-window... and especially http://donsbot.wordpress.com/2007/05/17/roll-your-own-window... give a good introduction into the mindset behind programming in Haskell.
The latter focusses on zippers. Zippers solve the problem of having a connection and a `cursor' into that connection to mark one element--in the case of XMonad we mark the window that has focus.
In C you would probably solve this with an array and an int. Unfortunately, the compiler can't help ensure that your int always points into the array, and that deleting and inserting are doing the right thing. Zippers help here.