Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why is the method to set the text on an object "get_text()" ?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: