3 ms·
I'm reminded of another comment from some time ago [0] that recommended 'permissive' parsers for a different reason: you can build a list of syntax errors for t
by MaxBarraclough 7y ago
I'm reminded of another comment from some time ago [0] that recommended 'permissive' parsers for a different reason: you can build a list of syntax errors for the user, which isn't possible if you explode immediately, and you may be able to generate better syntax errors than your parser would have.
[0] https://news.ycombinator.com/item?id=17072670 https://news.ycombinator.com/item?id=17072670