<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 05/12/2010 12:29, Wolfgang Laun wrote:
<blockquote
cite="mid:AANLkTi=O_i8kM+pGEMG47=2McVmeYisC2uOCv4FPeHMS@mail.gmail.com"
type="cite">On 5 December 2010 11:23, Mark Proctor <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
<div text="#000000" bgcolor="#ffffff">
<div class="im"> On 04/12/2010 20:49, Michael Anstis wrote:
<blockquote type="cite">None here.<br>
<br>
Longer term, I wonder whether our DSL syntax is too
weak?<br>
<br>
Even the ability to declare blocks would be nicer than
long lines (and line split markers):-<br>
</blockquote>
</div>
I'd rather see us progress go a constraint and data driven
templating system. I'll discuss it more with you when we
meet up. The DSLs are just sentence templates and we
needmore than that.<br>
<font color="#888888"> <br>
</font></div>
</blockquote>
<div><br>
So what? Leave the current DSL with all its deficiencies and
bugs?<br>
</div>
</div>
</blockquote>
DSLs are just template fragments, with any luck we can figure out
how they can fit into the larger picture of a more constrained and
validated approach.<br>
<br>
We haven't planned anything yet, so really don't know. I just know
that pure fragment templates, with no constraints no data driven
suggestions, no validation is not an ideal long term approach.<br>
<br>
Also being OSS nothing ever dies as long as someone is out there
using stuff and producing patches for it.<br>
<br>
Mark<br>
<blockquote
cite="mid:AANLkTi=O_i8kM+pGEMG47=2McVmeYisC2uOCv4FPeHMS@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div>-W<br>
<br>
</div>
<blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
<div text="#000000" bgcolor="#ffffff"><font color="#888888">
Mark</font>
<div>
<div class="h5"><br>
<blockquote type="cite"><br>
<span style="font-family: courier new,monospace;">then
[Book the customer for the flight]</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
{</span><br style="font-family: courier
new,monospace;">
<span style="font-family: courier new,monospace;">
$f.setAvailable( $f.getAvailable() - 1 );</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
update( $f );</span><br style="font-family: courier
new,monospace;">
<span style="font-family: courier new,monospace;">
Booking booking = new Booking();</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
booking.setCustomer( $r.getCustomer() );</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
booking.setFlight( $f );</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
insert( booking );</span><br style="font-family:
courier new,monospace;">
<span style="font-family: courier new,monospace;">
}</span><br style="font-family: courier
new,monospace;">
<br>
<br>
<div class="gmail_quote">On 4 December 2010 18:33,
Wolfgang Laun <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:wolfgang.laun@gmail.com"
target="_blank">wolfgang.laun@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left:
1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt
0.8ex; padding-left: 1ex;"> Currently each entry
must be a single line of text. This results in
long lines, especially on the RHS.<br>
<br>
I have experimentally inserted a transformation of
the DSL text (in DSLTokenizedMappingFile)<br>
which converts '\'+EOL on the fly to a space. (The
passed-in reader is read into a buffer, '\'+EOL<br>
is translated to space, and EOLs are inserted
later to readjust the line number.) In a text
editor,<br>
I can now write, e.g.,<br>
<br>
then][][Bb]ook the customer for the flight=\<br>
$f.setAvailable( $f.getAvailable() - 1 );\<br>
update( $f ); \<br>
Booking booking = new Booking(); \<br>
booking.setCustomer( $r.getCustomer() ); \<br>
booking.setFlight( $f ); \<br>
insert( booking );<br>
<br>
Of course, the DSL editor will not preserve this,
but future development might provide more<br>
convenient editing there, too.<br>
<br>
Any objections?<br>
<font color="#888888">-W<br>
</font><br>
_______________________________________________<br>
rules-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-dev@lists.jboss.org"
target="_blank">rules-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
</blockquote>
</div>
<br>
<pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a moz-do-not-send="true" href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>