Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88441 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97828 invoked from network); 23 Sep 2015 16:16:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2015 16:16:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@dasprids.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail@dasprids.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dasprids.de from 46.4.80.198 cause and error) X-PHP-List-Original-Sender: mail@dasprids.de X-Host-Fingerprint: 46.4.80.198 server1.dasprids.de Received: from [46.4.80.198] ([46.4.80.198:57868] helo=mail.dasprids.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/20-30344-340D2065 for ; Wed, 23 Sep 2015 12:16:04 -0400 Received: from [192.168.0.86] (unknown [5.158.132.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mail@dasprids.de) by mail.dasprids.de (Postfix) with ESMTPSA id 160D434404F5 for ; Wed, 23 Sep 2015 18:16:00 +0200 (CEST) To: internals@lists.php.net References: Message-ID: <5602D04C.6070803@dasprids.de> Date: Wed, 23 Sep 2015 18:16:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implementing Generics, and none scalar default properties. From: mail@dasprids.de (Ben Scholzen 'DASPRiD') Hey Dominic On 23.09.2015 16:53, Dominic Grostate wrote: > A couple of things that would really help me in PHP are generics and the > ability to set default values of properties to instances of objects or > calls to static methods or functions (expressions in general). > > I don't know if either of these have experimental implementations already > as I couldn't find any, but if it would add some interest I may be willing > to tackle the source to help push it forward. > > Could you please advise me on any fatal barriers that might prevent this > being worth while for me. Thank you. > > Dominic So far I only wrote up the RFC and kicked off a discussion here on the mailing list about it. As I wrote several times already, I'd appreciate someone tackling the implementation side to get a patch working! Cheers, -- Ben Scholzen 'DASPRiD' Community Review Team Member | mail@dasprids.de Zend Framework | http://www.dasprids.de