|
|
|
|
|
by juliangamble
4306 days ago
|
|
it's easier to work both with monads and parsers in dynamically typed language I'm asking a genuine question. I'm certain other people have had a different experience to this. Could you expand on what makes it easier? (And would you deliberately distinguish between 'easy' and 'simple') |
|
It "easy". Cause it takes less characters in your code: you don't need "type classes" of any form, you don't care about liftings etc. You can start from 2-3 lines of code and see immediate result.
But it's really not that "simple", cause without constant thinking about type of each expr it becomes very hard to trace long chains of monad operations very quickly. Plus types are great for verifying that you didn't break anything inside your "do" block (which is painful in dynamic env).