Hi Alain,<br>  I am a bit busy this week, but I would like to follow the discussion and give some feedback next week, Thanks<br><div class="gmail_quote">On Mon, Mar 25, 2013 at 2:49 PM, Alain Frisch <span dir="ltr"><<a href="mailto:alain.frisch@lexifi.com" target="_blank">alain.frisch@lexifi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 03/25/2013 03:13 PM, jathdr wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could we get a summary of the current syntax proposal? I've been<br>
following along, but I'm a bit lost as to what has been discussed,<br>
accepted, rejected, etc.<br>
</blockquote>
<br></div>
This file describes the current syntax proposal:<br>
<br>
<a href="http://caml.inria.fr/cgi-bin/viewvc.cgi/ocaml/branches/extension_points/experimental/frisch/extension_points.txt?revision=HEAD&view=markup" target="_blank">http://caml.inria.fr/cgi-bin/<u></u>viewvc.cgi/ocaml/branches/<u></u>extension_points/experimental/<u></u>frisch/extension_points.txt?<u></u>revision=HEAD&view=markup</a><div class="im">
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is probably a bit off topic, but while we're talking about<br>
interval patterns: I discovered the other day that interval patterns<br>
only work for chars, while I always assumed they also worked for<br>
ints. Is there a reason why they don't?<br>
</blockquote>
<br></div>
Currently, range patterns for characters are expanded in the parser. Doing so for integers as well could lead to huge or-patterns to be processed by the rest of the compiler.  Supporting range patterns directly in the compiler would add a little bit of extra complexity for type-checking (exhaustiveness check) and code generation.  I don't see any theoretical problem, though.<span class="HOEnZb"><font color="#888888"><br>

<br>
<br>
-- Alain</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
wg-camlp4 mailing list<br>
<a href="mailto:wg-camlp4@lists.ocaml.org" target="_blank">wg-camlp4@lists.ocaml.org</a><br>
<a href="http://lists.ocaml.org/listinfo/wg-camlp4" target="_blank">http://lists.ocaml.org/<u></u>listinfo/wg-camlp4</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>-- Regards, Hongbo