[jboss-jira] [JBoss JIRA] Commented: (JBRULES-269) Parser to be stricter with newlines
Dirk Bergstrom (JIRA)
jira-events at jboss.com
Fri Nov 10 15:16:41 EST 2006
[ http://jira.jboss.com/jira/browse/JBRULES-269?page=comments#action_12346703 ]
Dirk Bergstrom commented on JBRULES-269:
----------------------------------------
I think it would be quite reasonable to require that rule, when, then & end be on their own lines. It would enforce a modicum of clarity, and avoid "goddam keyword collisions", as noted elsewhere.
I have no objection to enforcing column positions, but then again I like Python.
> Parser to be stricter with newlines
> -----------------------------------
>
> Key: JBRULES-269
> URL: http://jira.jboss.com/jira/browse/JBRULES-269
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Drl Parser/Builder
> Affects Versions: 3.0-rc2
> Reporter: Michael Neale
> Assigned To: Michael Neale
> Fix For: 3.1-m3
>
>
> Given that we are not going down the route of
> when {
> }
> style brackets, we will need to be stricter about newlines.
> In otherwords, newlines are required I believe in the following scenarious:
> before a when,
> after a when before the LHS
> before a then
> after a then before then RHS
> before an end (at the end of the rule).
> when,then, end - should all appear on a line by themselves.
> Optionally (perhaps?) rule should always be at the start of a newline.
> on a similar note, should rule and end be at the start of a newline? (don't really want to have to enforce column positions - but it is kind of needed).
--
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
More information about the jboss-jira
mailing list