It mostly helps to differentiate bindings from fieldsPerson( name : name )
Person( name == name )
This is generally more readable.
Person( $name : name )
Person( name == $name )
That said I prefer to only bind patterns, and if the class name does not conflict with any field names, then I don't use $
p : Person()
Person( name == p.name )
AI systems traditionally use ? to differentiate variables, but that symbol is not allowed as a variable name char in java.
Mark
No difference, it was/is just used a lot in examples and advice given on here so has sort of become an unofficial standard.
Some argue the presence of "$" helps identify bindings when scanning DRL.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users