<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I would also like to keep it as close to Java as possible.&nbsp;<div><br><div>There are few problems here:</div><div>* It could never go beyond Java</div><div>* We are using Java 5 and just considering Java 6, this would be a huge leap :-)</div><div><div><br></div><div>But then again if we don't use the Java way, then what will we do when Drools reaches Java 8, support both?</div><div><br></div><div>Toni</div><div><br><div><div>On Oct 20, 2011, at 11:08 AM, Geoffrey De Smet wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div text="#000000" bgcolor="#ffffff">
    Interesting stuff.<br>
    This is basically<br>
    &nbsp; "closures" which will be available in JDK 8<br>
    &nbsp; + 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>
    &nbsp;
<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.&nbsp;
      <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.&nbsp;</div>
      <div>Cheers<br>
        <br>
        <div class="gmail_quote">On Wed, Oct 19, 2011 at 5:59 PM, Mario
          Fusco <span dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:mario.fusco@gmail.com">mario.fusco@gmail.com</a>&gt;</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>
        &nbsp;- CTO @ <a moz-do-not-send="true" href="http://www.plugtree.com/" target="_blank">http://www.plugtree.com</a>&nbsp;
        <br>
        &nbsp;- 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>
          &nbsp;- Co-Founder @ <a moz-do-not-send="true" href="http://www.jbug.com.ar/" target="_blank">http://www.jbug.com.ar</a><br>
          &nbsp;<br>
          &nbsp;- 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>
  </div>

_______________________________________________<br>rules-dev mailing list<br><a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-dev<br></blockquote></div><br></div></div></div></body></html>