Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88501 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55402 invoked from network); 25 Sep 2015 21:21:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2015 21:21:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.47 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.47 mail-pa0-f47.google.com Received: from [209.85.220.47] ([209.85.220.47:33586] helo=mail-pa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/A6-31991-9DAB5065 for ; Fri, 25 Sep 2015 17:21:30 -0400 Received: by pacex6 with SMTP id ex6so115927666pac.0 for ; Fri, 25 Sep 2015 14:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=Zm8G9Fvlp5OVBiAMiKdkWiQG/rCk+Uvu2BRBSpxLFDs=; b=VsNm38AK6FNvGSrUpby+vGCDh6RfW8IJjpruDdx25Fe/a6A0F9BHnkpMo+Uqf+05Jw WB93zHVBn9xWs7wbssSDrUGaB0AZrRbX7GEj3Cnt9966gZX6o+BG0XoLwgLvfDka1rTp 21xUAojb92xGh+PaI5vds/61svw8sWrLk58vVIiha4fAinrplVPMD9teqjkoEJV0348/ 6HncRlXDGgTG80gc4MM9/W6bc+ZtDufn+iFaZBQq5HPXjESf1n504NKbAkayBsZ8RNIH eijTZo/sP+DGqac3SIa3Vf9TRMS0mx/8661oeTDeHEDE77nxZb9yQmLuTYl5ptwI8u/J 3bNQ== X-Received: by 10.66.147.38 with SMTP id th6mr9999851pab.94.1443216087296; Fri, 25 Sep 2015 14:21:27 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id la4sm5548579pbc.76.2015.09.25.14.21.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2015 14:21:26 -0700 (PDT) To: Dominic Grostate , internals@lists.php.net References: Message-ID: <5605BACE.30803@gmail.com> Date: Fri, 25 Sep 2015 14:21:18 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implementing Generics, and none scalar default properties. From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > ability to set default values of properties to instances of objects or > calls to static methods or functions (expressions in general). That is what constructors are for. I.e. I can understand initializing static properties (though it gives a lot of potential for weird race conditions) but for non-statics constructor is exactly the place where initialization should happen. -- Stas Malyshev smalyshev@gmail.com