Re:Haskell version of Norvig's spelling corrector
by flebron on Friday December 19, 2014 @01:59PM
(#8773825)
Well, what you wrote is "The main reason I did it was to see what Haskell is capable of compared to other languages such as Python." The problem is that what you coded isn't what Haskell is capable of :)
Re:Haskell version of Norvig's spelling corrector
by chaoxu on Friday December 19, 2014 @02:58PM
(#8774168)
It would be nice if you explicitly state you are learning Haskell in your article. If I'm a newbie and I see some of the awkward Haskell code(which I also make sometimes), I would feel discouraged. It doesn't seem Haskell is making things better.
Re:Haskell version of Norvig's spelling corrector
by wyager on Friday December 19, 2014 @01:56PM
(#8773804)
I expect there to be lots of comments demonstrating tons of different styles of doing this stuff. Haskell is one of those languages where you can go back to your code 20 times and still find a new way of doing something.
But I must say, thanks for the great feedback! Lots of stuff I didn't know that we'll make me write better Haskell code :)