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

If autoloading namespaces or namespaced functions was possible then static classes wouldn't be needed and things like this would be commonplace:

    \Requests\get('http://google.com');


Another reminder of why in the fuck did they use the backslash character.


That's true, and it's something that's being discussed on the PHP core mailing list.

However, I support PHP 5.2 (pragmatic reasons; 5.2 is still used by a huge percentage of hosts), so I wouldn't be able to use that anyway.




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

Search: