Closed LeaVerou closed 1 month ago
Defaulting to the empty string may save chars for some use cases, but can also be very surprising and destructive. Especially with subreplacements, a to that defaults to leaving the string unchanged can be useful, and if anything less surprising.
to
Defaulting to the empty string may save chars for some use cases, but can also be very surprising and destructive. Especially with subreplacements, a
to
that defaults to leaving the string unchanged can be useful, and if anything less surprising.