Copy link
@niner

niner Apr 18, 2022

Collaborator

For that use case it'd be much better to throw an actual typed exception and have the message method generate the message when its actually needed. That's even faster than the micro-optimized code and eliminates the need for micro-optimization as such a message would only be needed when its getting displayed to the user which is usually the end of the program.