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.
In reply to Re^2: calling regular expressions returned by functions?
by Anonymous Monk
in thread calling regular expressions returned by functions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |