Interesting stuff.
This is basically
"closures" which will be available in JDK 8
+ LHS closure pattern support
1) About "closures" which will be available in JDK 8:
Since functions contain Java code, which is imperative, not
declarative, I don't consider that DRL turf any more.
Our closure syntax should there should be exactly the same as
Java 8.
Here's their syntax, which looks the same on first sight, but the
devil is in the details (= unreleased spec):
http://mail.openjdk.java.net/pipermail/lambda-dev/2011-September/003936.html
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)
or we implement it just like the JDK8 with the exact same syntax
(which is a LOT of work).
2) About LHS closure pattern support.
This builds on top of 1) to allow usage of closures in the LHS.
Cool stuff, I like the piping idea.
Op 19-10-11 23:12, Mauricio Salatino schreef:
Hi Mario, that document looks great.. I will take some
time to read it and I will try to give some feedback.
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.
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
--
With kind regards,
Geoffrey De Smet
_______________________________________________