3 ms·
The question is not about the result of the function it's about the function itself, aka if you have X.Y.Z.get("Q") X.Y.Z.get("R") does the runtime re
by masklinn 11y ago
The question is not about the result of the function it's about the function itself, aka if you have
X.Y.Z.get("Q")
X.Y.Z.get("R")
does the runtime resolve the X.Y.Z.get chain once or twice.
- laumars 11y agoI don't know and wouldn't like to guess. But that's just namespacing anyway, so I doubt it's going to carry that much overhead. In any case, that's not what the article was discussing and not what the majority of the comments on HN were discussing either.
- laumars 11y agoSorry, I'm suffering from manflu at the moment so my brain isn't running at full capacity; which means someone will have to explicitly spell out why my comment was downvoted. I'm assuming I've errored somewhere - in which case I'd welcome the opportunity to learn something :)