|
|
|
|
|
by thosakwe
994 days ago
|
|
I learned Haskell this year. After reading this article, the conclusion I drew was, "Cool, so I can `fmap` over my parser now and transform what I parse using functions." To answer your other questions: I'm not sure it means much for the code that does the actual parsing, nor how you specify the grammar's rules, it's more about being able to transform the output using functions. If your static analyzer is a function, you could now write `fmap staticAnalyzer myParser`. |
|
Can't one always use functions to transform other functions' outputs?
> If your static analyzer is a function, you could now write `fmap staticAnalyzer myParser`.
rolls eyes
Ability to write that in the point-free style is really not that important, IMHO.