Hacker News new | ask | show | jobs
by chrisseaton 1650 days ago
If user is a string, then #toString() is a trivial method, will inline, and become a no-op.
1 comments

However, if user happened be an user-defined User object it would be hard to guarantee that it could be inlined
Yes