Actions
Feature #14443
closedOmit 'pattern' parameter in '(g)sub(!)' when 'hash' is given
Feature #14443:
Omit 'pattern' parameter in '(g)sub(!)' when 'hash' is given
Status:
Closed
Assignee:
-
Target version:
-
Description
When (g)sub(!) takes a hash as the second argument, in almost all use cases, the first argument expresses the union of keys of the hash. In the following, /[abc]/ is the union of the keys "a", "b", "c".
I feel this redundant and not efficient. Hence I propose to let the current first argument be optional when a hash is given. The following:
should be equivalent to:
where:
Actions