2 ms·
Parsing is something that's very pleasant in Haskell. Other languages can use parser combinators too, of course. It's good at it though.
by steveklabnik 10y ago
Parsing is something that's very pleasant in Haskell. Other languages can use parser combinators too, of course. It's good at it though.
- theoh 10y agoYeah, fair point. That'll be a function of the fact that Haskell has tended to prioritize the concerns and problems of writing the compiler. Complex transformations of data structures are part of the compilation activity too, but they're more difficult to spot in the wild of applications.
- dukerutledge 10y agoI'd disagree. Most business logic is just transformation of data structures in disguise. Once you have a sufficiently rich set of data structures this becomes abundantly clear.
- anistas 10y agoC-to-Rust converter is written ... in Haskell https://github.com/jameysharp/corrode https://github.com/jameysharp/corrode
- steveklabnik 10y agoYup! There was already a great, ready to use C parser in Haskell, and we don't have one in Rust yet.
- TheCondor 10y agoGreat example!