SF Markus Elfring
2018-02-17 13:34:49 UTC
Hello,
Constraints can be specified for metavariables of the semantic patch language.
I noticed that they can trigger software maintenance challenges
when bigger specifications are repeated in some SmPL rules.
Now I am looking again for further possibilities to avoid corresponding
code duplication.
* Scripted constraints might be a design option.
Unfortunately, I find the documentation for this functionality still incomplete.
* I imagine that it would nice if constraints could be set by programming script
rules at a single place.
Regards,
Markus
Constraints can be specified for metavariables of the semantic patch language.
I noticed that they can trigger software maintenance challenges
when bigger specifications are repeated in some SmPL rules.
Now I am looking again for further possibilities to avoid corresponding
code duplication.
* Scripted constraints might be a design option.
Unfortunately, I find the documentation for this functionality still incomplete.
* I imagine that it would nice if constraints could be set by programming script
rules at a single place.
Regards,
Markus