<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Begin forwarded message:<br><br></div><blockquote type="cite"><div><b>From:</b> "Jon Harrop" <<a href="mailto:jon@ffconsultancy.com">jon@ffconsultancy.com</a>><br><b>Date:</b> 4 February 2013 18:59:32 GMT<br><b>To:</b> "Caml List" <<a href="mailto:caml-list@inria.fr">caml-list@inria.fr</a>><br><b>Subject:</b> <b>[Caml-list] View patterns</b><br><br></div></blockquote><blockquote type="cite"><div><span></span><br><span>FWIW, two of the most common camlp4 parsers in the wild, stream parsers and</span><br><span>bitstring, are solved in F# using view patterns. I suspect many other</span><br><span>applications of camlp4 would be written in terms of view patterns. Moreover,</span><br><span>it strikes me that consideration so far on things like F#-like attributes is</span><br><span>an orthogonal issue so perhaps support for that and support for view</span><br><span>patterns would do a much better job of displacing camlp4.</span><br><span></span><br><span>I use view patterns to write parsers in F# but I would prefer a camlp4-like</span><br><span>technology to write parsers in-line.</span><br><span></span><br><span>-- </span><br><span>Dr Jon Harrop, Flying Frog Consultancy Ltd.</span><br><span><a href="http://www.ffconsultancy.com">http://www.ffconsultancy.com</a></span><br><span></span><br><span></span><br><span>-- </span><br><span>Caml-list mailing list. Subscription management and archives:</span><br><span><a href="https://sympa.inria.fr/sympa/arc/caml-list">https://sympa.inria.fr/sympa/arc/caml-list</a></span><br><span>Beginner's list: <a href="http://groups.yahoo.com/group/ocaml_beginners">http://groups.yahoo.com/group/ocaml_beginners</a></span><br><span>Bug reports: <a href="http://caml.inria.fr/bin/caml-bugs">http://caml.inria.fr/bin/caml-bugs</a></span><br><span></span><br></div></blockquote></body></html>