17224, "leekillough", "Should Regexp module type reMatch be renamed match or something else?", "2021-02-22T20:56:57Z"
A reMatch
represents the result of a search
or match
on a regexp
.
The name reMatch
is misleading, and may make it sound like it re-matches the regular expression, which it is simply the type returned from the search
and match
operations.
The name match
or Match
could be used. If names beginning with uppercase are reserved for modules, then it should probably be match
, unless that is too common of a name and it will cause name collision.
A table with several languages' match types is listed in #17222 .