4 ms·
You realize I used this placeholder name just as an example, since I have no idea what function this code was a part of. That said, a one-liner function that's
by BulgarianIdiot 5y ago
You realize I used this placeholder name just as an example, since I have no idea what function this code was a part of.
That said, a one-liner function that's semantically specific to an app (where 42 bits is important for some reason) is absolutely harmless. The compiler will inline it, while for you it represents an opportunity to refactor this in one place. Because the assumption is you call a function at least twice, or it wouldn't be a function in the first place (some exceptions but mostly it's the rule).
- gnubison 5y agoThe compiler may inline it, but my brain can’t.