* [Caml-list] View patterns
@ 2013-02-04 18:59 Jon Harrop
0 siblings, 0 replies; only message in thread
From: Jon Harrop @ 2013-02-04 18:59 UTC (permalink / raw)
To: Caml List
FWIW, two of the most common camlp4 parsers in the wild, stream parsers and
bitstring, are solved in F# using view patterns. I suspect many other
applications of camlp4 would be written in terms of view patterns. Moreover,
it strikes me that consideration so far on things like F#-like attributes is
an orthogonal issue so perhaps support for that and support for view
patterns would do a much better job of displacing camlp4.
I use view patterns to write parsers in F# but I would prefer a camlp4-like
technology to write parsers in-line.
--
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-04 18:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-04 18:59 [Caml-list] View patterns Jon Harrop
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox