Re: Re: Resource typehint and return type

From: Date: Mon, 23 Nov 2015 01:57:35 +0000
Subject: Re: Re: Resource typehint and return type
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-89302@lists.php.net to get a copy of this message
On 13.11.2015 12:59, Bob Weinand wrote:
The alternative is replacing the resources by proper objects, without methods and public properties. Then we could integrate it into our object hierarchy in a very lightweight way with proper typing. Having special syntax doesn't really improve it much... Bob
I just looked at this again, and I don't know how I could miss this for so long, but we already have SplFileObject. Wouldn't it make sense to let fopen() and complementary functions use that? -- Ben Scholzen 'DASPRiD' Community Review Team Member | mail@dasprids.de Zend Framework | http://www.dasprids.de

« previous php.internals (#89302) next »