DEV Community

Discussion on: Elm Europe 2018 - attending Richard Feldman’s workshop

Collapse
 
fenntasy profile image
Vincent Billey

Finally we had a look at parsing. This a pretty powerful tool for validation

Could I ask you to elaborate on that, I'm surprised to read it?

Collapse
 
rwoodnz profile image
Richard Wood

This related to the a Elm parser library. An example provided was using it for field validation on forms. The pipeline approach gives a lot of power in how you construct your expectations and enables you to create code that is very readable compared to, say, using regex or a lengthy series of conditionals.