tkobayas commented on PR #5640:
URL:
https://github.com/apache/incubator-kie-drools/pull/5640#issuecomment-1876260603
DRL considers a new line is just `WS`, which is not used as a delimiter of
the syntax.
So it was valid to parse
```
/measurements[ $id: id == "color", $colorVal : val ]
/sensors[ id == $id ]
```
as one constraint:
```
/measurements[ $id: id == "color", $colorVal : val ]/sensors[ id == $id ]
```
However, if we want to consider that they are 2 OOPath patterns, we need to
use a new line as a delimiter. So this fix is exceptional.
As a fundamental fix, IMO, we need to introduce an explicit syntax to begin
an OOPath. e.g. `$/`
For example)
```
$/measurements[ $id: id == "color", $colorVal : val ]
$/sensors[ id == $id ]
```
WDYT? @mariofusco
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]