Hacker News new | ask | show | jobs
by mcphage 1763 days ago
Why is the method to set the text on an object "get_text()" ?
1 comments

It seems slightly confusing, but I think the idea is that the brace is creating a new text object, which is returned and you can then add it to the scene. So it's not "get the current string" it's "give me a text object with this string." Could have been named `create_text()` perhaps.