4 ms·
If autoloading namespaces or namespaced functions was possible then static classes wouldn't be needed and things like this would be commonplace: \Requests\
by dave1010uk 14y ago
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');
- antihero 14y agoAnother reminder of why in the fuck did they use the backslash character.
- rmccue 14y agoThat'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.