News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
PHP 10.0 Blog:
Kill resources
May 17, 2007 @ 07:56:00

In a new post to the PHP 10.0 blog today, Stas asks the question "Why do we still have resource type in PHP?"

Since 5.x, objects are perfectly capable on encapsulating any void * transparently (there's at least 2 Java bridges doing that, for example) and of course using objects doesn't force you to use OO syntax. [...] So objects as I see it can do anything resources can do. And much more - you could extend it (had we had file as object and not resource, streams probably would be much easier to implement), serialize it (provided correct methods of course), etc., etc.

He suggests letting them go all together and letting objects swoop in and take over, making things simpler to manage.

0 comments voice your opinion now!
resource type kill object encapsulate resource type kill object encapsulate



Similar Posts

DevShed: Introducing Builder Objects in PHP 5

Site News: Job Postings for the week of 09.14.2008

DevShed: Generating Outputs from MySQL with Static Members and Methods in PHP 5

Zend Developer Zone: Security Tip of the Week

SitePoint: Blog Software Smackdown - The Big 3 Reviewed


Community Events









Don't see your event here?
Let us know!


PEAR application zendframework book code security PHP5 conference framework cakephp developer releases package job ajax release mysql example zend database

All content copyright, 2009 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework