Re: PHP7 and types

From: Date: Tue, 14 Jul 2015 09:51:44 +0000
Subject: Re: PHP7 and types
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-87165@lists.php.net to get a copy of this message
2015-07-14 11:05 GMT+02:00 S.A.N <ua.san.alex@gmail.com>: > Maybe implement getter/setter as ECMAScript 6? > > class Person > { > get name ():string { return $this._name } > set name (string $value) { $this._name = $value } > } Which was rejected some time ago. (34 vs 22 in favor): https://wiki.php.net/rfc/propertygetsetsyntax-v1.2 Maybe it's time to reevaluate the proposal and see if a new implementation could gather more support.

« previous php.internals (#87165) next »