News for hackers. Stuff that matters.
Re:Parser Combinators in Haskell by jaspervdj on Wednesday December 22, 2021 @10:47AM (#29650826)
The builder interface has important performance benefits over working with lists: similar to e.g. concatenating many small Strings vs using StringBuilder in Java.

The builder interface indeed does not need to be monadic, you can simply append things using <> and get the same benefits.

The monadic interface is purely a syntactic enhancement on top of that, to reduce the number of operators you need.

There are no comments on this comment yet.