<!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">
Interesting stuff.<br>
This is basically<br>
"closures" which will be available in JDK 8<br>
+ LHS closure pattern support<br>
<br>
1) About "closures" which will be available in JDK 8:<br>
Since functions contain Java code, which is imperative, not
declarative, I don't consider that DRL turf any more.<br>
<b>Our closure syntax should there should be exactly the same as
Java 8.</b><br>
Here's their syntax, which looks the same on first sight, but the
devil is in the details (= unreleased spec):<br>
<a class="moz-txt-link-freetext" href="http://mail.openjdk.java.net/pipermail/lambda-dev/2011-September/003936.html">http://mail.openjdk.java.net/pipermail/lambda-dev/2011-September/003936.html</a><br>
Either we wait for JDK 8 to be released to support closures (current
release date is 2012 according to Mark R.'s "plan B" that released
JDK 7 in 2011)<br>
or we implement it just like the JDK8 with the exact same syntax
(which is a LOT of work).<br>
<br>
2) About LHS closure pattern support.<br>
This builds on top of 1) to allow usage of closures in the LHS.<br>
Cool stuff, I like the piping idea.<br>
<br>
Op 19-10-11 23:12, Mauricio Salatino schreef:
<blockquote
cite="mid:CANzbnyUBjaHd-4F=9ouWSr1xDNdYbjeUVmr3xb1ObxhuXXSJ0A@mail.gmail.com"
type="cite">Hi Mario, that document looks great.. I will take some
time to read it and I will try to give some feedback.
<div>I was playing with cypher (from neo4j, a graph oriented DB)
(total newbie on that) but looking at your in line acc functions
I think that we can take some concepts from cypher and apply
them in DRL. </div>
<div>Cheers<br>
<br>
<div class="gmail_quote">On Wed, Oct 19, 2011 at 5:59 PM, Mario
Fusco <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mario.fusco@gmail.com">mario.fusco@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Hi all,<br>
<br>
as anticipated by Mark, I put down some ideas on how we
could start introducing some functional programming features
in the DRL.<br>
<br>
<a moz-do-not-send="true"
href="http://community.jboss.org/wiki/FunctionalProgrammingInDrools"
target="_blank">http://community.jboss.org/wiki/FunctionalProgrammingInDrools</a><br>
<br>
It's needless to say that the document has to been
considered just a draft in its very first stage and any
feedback or suggestion to improve or clarify it is welcome.<br>
<font color="#888888"><br>
Mario<br>
</font><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>
<br clear="all">
<div><br>
</div>
-- <br>
- CTO @ <a moz-do-not-send="true"
href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>
<br>
- MyJourney @ <a moz-do-not-send="true"
href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a>
<div>
- Co-Founder @ <a moz-do-not-send="true"
href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
- Co-Founder @ <a moz-do-not-send="true"
href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
<br>
- Salatino "Salaboy" Mauricio -</div>
<br>
</div>
<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>
<pre class="moz-signature" cols="72">--
With kind regards,
Geoffrey De Smet</pre>
</body>
</html>