On Monday, November 3, 2003, at 06:57 PM, [EMAIL PROTECTED] wrote:
Hi Folks,
Charlemagne will have regular expression support. Question: what should the Jess syntax look like when you use regexes for pattern-matching? Of course, there could be a function-based approach, sorta like Python:
(animal (name ?n&:(match ?n "[a-z]*")))
Please register my vote for this approach. My rationale is twofold: First of all, it does not require modification of the language's grammatical structure. In my opinion, one of the primary goals of any computer language development should be structural simplicity. This construct is semantically like any other functional constraint, and the syntax reflects that. Secondly, it seems that this approach is the most flexible; witness all the issues presented regarding variables and multislots in regular expressions. You don't want to get into a situation where the regex syntax and operators get more and more complex as more features are added.
-------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
