in reply to Re: calling regular expressions returned by functions?
in thread calling regular expressions returned by functions?
Agreed as far as the directory semantics staying the same.
However, the question is larger than just directory filtering. What constants gain is lessening the chance that a regular expression gets changed in one location when it needs to be changed in all locations, or it gets changed incorrectly in a code branch which isn't executed often or unfortunately tested. I only used directory filtering as an example.
Thanks for your contribution.
|
|---|