Hacker News new | ask | show | jobs
by ascw 6875 days ago
Thats cool, does it work with creating classes that way as well?
1 comments

im assuming the above code is equivalent to:

class foo {

  public function someMethod() { trace("blah blah"); }
}

new foo().someMethod();

just different approaches to the same problem