Breaking notation convention - a potential anti-pattern?

The ! is just a convention, designed to be a helpful signal to end users about what the function may or may not do. IMO it all depends on the use-case and how you might imagine callers reasoning about the function call.

6 Likes