Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63442 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18198 invoked from network); 16 Oct 2012 09:51:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2012 09:51:31 -0000 Authentication-Results: pb1.pair.com header.from=amaury.bouchard@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=amaury.bouchard@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: amaury.bouchard@gmail.com X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:47286] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/28-10021-22E2D705 for ; Tue, 16 Oct 2012 05:51:30 -0400 Received: by mail-oa0-f42.google.com with SMTP id j1so6548191oag.29 for ; Tue, 16 Oct 2012 02:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=d61KgIgzWfufwrwyLk3cZcA1A0wBbezT8y087eKWg9I=; b=iL5rjvbSadbRca3tdc+EQMcO/SEKEdBwBGNp6V2UbLuIHBKH8mBQrIVcLCUEvYmPK9 jmYGelQ+p1nEnLQ5VoRWuR3cbKqdsAEjE+HXITmfwLB9vqPpu1uLyPJ4rxkMBOXI5IC+ UaUOsQQc4f9yaaaUtleDBCWFRv6ZF7/JRFpZloxCFQ4pA7Xgks/0mL+YQeGALhEaNqml w/F0K2pZJpY43yWa18m5TtXpkdsfF2R9CBYm36MLxpajfn8UeKDFEWRNUzfSeESd8o1B QlwLyYPWrtTxKVE7liXKd7bJMKROyUhECQHEMP6PWvmiT0EZtHTos8EL9SgKBrszm8ju pllA== Received: by 10.182.212.7 with SMTP id ng7mr11857503obc.74.1350381087800; Tue, 16 Oct 2012 02:51:27 -0700 (PDT) MIME-Version: 1.0 Sender: amaury.bouchard@gmail.com Received: by 10.182.24.169 with HTTP; Tue, 16 Oct 2012 02:51:07 -0700 (PDT) In-Reply-To: <507D133A.4040701@sugarcrm.com> References: <9570D903A3BECE4092E924C2985CE485612B6434@MBX202.domain.local> <507D133A.4040701@sugarcrm.com> Date: Tue, 16 Oct 2012 11:51:07 +0200 X-Google-Sender-Auth: JgBunhoCT5vjvfq6PF3a85_c9FI Message-ID: To: Stas Malyshev Cc: Levi Morrison , Clint Priest , "internals@lists.php.net" , "Nikita Popov (nikita.ppv@gmail.com)" Content-Type: multipart/alternative; boundary=e89a8f6434cc0cbc3704cc2a19ab Subject: Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 : Typehints / Accessor Syntax From: amaury@amaury.net (Amaury Bouchard) --e89a8f6434cc0cbc3704cc2a19ab Content-Type: text/plain; charset=ISO-8859-1 2012/10/16 Stas Malyshev > >> public DateTime $date; > > > > This is *real* progress, even if under the hood all it does is wrap > > I think it's a movement in wrong direction. Again, it is an attempt to > make PHP a strongly typed language, which would not work well in a > dynamic language like PHP, for reasons that were amply explained in 9000 > discussions we had on this topic before. Not necessarily strongly typed. (sorry to land on this topic afterwards) As I see PHP, it's a language that can be used as an informal scripting language, but also as a rock-solid modern tool. Type hinting in parameters is a really good thing, and it doesn't transformed PHP in a strongly typed language. Doing the same for object properties (always optional) could be very useful. --e89a8f6434cc0cbc3704cc2a19ab--