LeaVerou / brep

Write batch find & replace scripts that transform files with a simple human-readable syntax
12 stars 0 forks source link

The default `to` should be "no change" #13

Closed LeaVerou closed 1 month ago

LeaVerou commented 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.