Re: [VOTE] Alternative typehinting syntax for accessors
| From: | Lars Schultz | Date: | Tue, 22 Jan 2013 08:15:24 +0000 |
| Subject: | Re: [VOTE] Alternative typehinting syntax for accessors | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65066@lists.php.net to get a copy of this message | ||
Am 22.01.2013 09:07, schrieb Nikita Popov:
It's not just about the lines of code. It's about having a more readable and more intuitive syntax. Am I the only one who thinks that "public $date { get; set(DateTime $date); }" looks pretty ugly/unclear compared to "public DateTime $date;"?FWIW: I agree;) If accessors get through, I'd rather have this alternate syntax. The other looks like a typo. I don't get to vote though...