logoalt Hacker News

armchairhackertoday at 6:41 PM1 replyview on HN

A nitpick I have with this specific example: would `handle_suspend` be called by any other code? If not, does it really improve readability and maintainability to extract it?


Replies

rudolph9today at 7:03 PM

The idea is that performance isn’t a reason not to do it. Other considerations may cause you to choose inline, but performance shouldn’t be one of them.