Y
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
alserio
1650 days ago
However, if user happened be an user-defined User object it would be hard to guarantee that it could be inlined
link
chrisseaton
1650 days ago
Yes
link