From: "Jon Harrop" <jon@ffconsultancy.com>
To: "Caml List" <caml-list@inria.fr>
Subject: [Caml-list] View patterns
Date: Mon, 4 Feb 2013 18:59:32 -0000 [thread overview]
Message-ID: <02b901ce0309$c555da10$50018e30$@ffconsultancy.com> (raw)
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
reply other threads:[~2013-02-04 18:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='02b901ce0309$c555da10$50018e30$@ffconsultancy.com' \
--to=jon@ffconsultancy.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox