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

Reads as if the person surprised by "new" binding stronger than the dot is coming from something like php where you can put various kinds of string madness in place of the class name.

But even there, it could not be "instantiate whatever ClassName().something() returns", because php being php has no qualms having places in code where string literals, variables and properties are accepted, but no other expressions that would return a string.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: