[
http://jira.jboss.com/jira/browse/JBRULES-451?page=all ]
Mark Proctor closed JBRULES-451.
--------------------------------
Resolution: Won't Fix
I discussed this with the team, becuse you are good bug reporter we took the time to
discuss thoroughly. But we decided that we won't add this one. It creates ambiguity in
the grammar and only really masks lazyness, which could lead to other problems....
Allow optional trailing comma "," for field constraint
list
-----------------------------------------------------------
Key: JBRULES-451
URL:
http://jira.jboss.com/jira/browse/JBRULES-451
Project: JBoss Rules
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 3.0.4
Reporter: Juergen none
Assigned To: Mark Proctor
Priority: Optional
With frequently re-arranging / adding / removing field constraints, I more than once
forgot to add / remove trailing/separating commas in the field constraint list.
would it be possible to extend the drools drl syntax to allow an optional trailing
comma?
e.g.
A(
a == 1,
b == 2, // optional trailing comma, should not yield the syntax error
)
A(
a == 1,
b == 2 // no (optional) trailing comma, like currently required, is also valid
)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira