I recently opened a very small PR to phoenix that would limit the number of extra bytes generated when using
mix phx.gen.secret. Ultimately it was not merged, but José commented that:
i usually do the reverse match as well on high performant code, but for this script, I think going with the most readable approach is good enough
Here is a link for the full context: https://github.com/phoenixframework/phoenix/pull/3600
I’ve tried looking up “reverse match” with regards to binary pattern matching, but can’t find anything. Can anyone explain what it means or offer a resource that does? Thank you!