I'm opening up several new threads to get discussion going on the remaining "being debated" categories referenced in this 1.1 -> 1.2 change spec:
https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented/change-requests

------------------------------------------------------------------------
*Extra shorthand declaration*

Allow extra short declaration of an accessor:

class TimePeriod {
    public DateTime $date;
}

/* Would be equivalent to this */

class TimePeriod {
    public $date {
        get() { return $this->date; }
        set(DateTime $value) { $this->date = $value;}
    }
}

------------------------------------------------------------------------
Thoughts?

--
-Clint

Reply via email to