Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64580 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39546 invoked from network); 6 Jan 2013 00:06:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2013 00:06:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:44651] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/CE-62408-A00C8E05 for ; Sat, 05 Jan 2013 19:06:36 -0500 Received: by mail-vc0-f170.google.com with SMTP id fl11so18291861vcb.29 for ; Sat, 05 Jan 2013 16:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qQ3Wpws7Ucg2H9jTtXk4FEnkIOrNGa+dADJL8aJ/ny8=; b=CC3X+cCeas9cgcIMmuWiVgA4wx6SteairjxjcHMh7v3vkahPENc4G8ML4GJe5P9+ZR vnWCfTOvwaYmIj/XURjs6HNdGnEsO6l+2kDL9poGAPohQuL9Jhjel0gE1TDxlI9rqEdN jb34osPvV/PEEPiru+/d0qsibCUa+2t+j1dPOA/c5Xwj2wWAF0A/tcyvAkg9FZN9tXS2 G+9reBw6RAJqgzhbNNZKTJYbhprDSbxF6aEhfN3sW7fGYj4MVJvXjDhPe6PQh/mMpKYN uh3cIhk5n1T5C73UPEwZBgdtY3+wmx7+7p2nwFSL8mFPGroFndodv+Os8GuGoI10Tcy7 uRdA== MIME-Version: 1.0 Received: by 10.58.85.134 with SMTP id h6mr82901292vez.18.1357430792606; Sat, 05 Jan 2013 16:06:32 -0800 (PST) Received: by 10.58.56.137 with HTTP; Sat, 5 Jan 2013 16:06:32 -0800 (PST) In-Reply-To: <50E8AA4D.5090207@sugarcrm.com> References: <19D80B01-BE88-4119-8A15-B631A96060E5@mrclay.org> <50E8AA4D.5090207@sugarcrm.com> Date: Sat, 5 Jan 2013 19:06:32 -0500 Message-ID: To: Stas Malyshev Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=047d7b6d934033549004d2937cf0 Subject: Re: [PHP-DEV] [RFC] Alternative typehinting syntax for accessors From: ircmaxell@gmail.com (Anthony Ferrara) --047d7b6d934033549004d2937cf0 Content-Type: text/plain; charset=ISO-8859-1 Stas, > I think this is way too much magic. This means default is no longer a > default, but instead some obscure flag that somehow is carried over to > the setter. I do not think redefining initialization as permitting nulls > is a good idea, initialization and value set are two different things. "Too much magic"? It's completely consistent with how method parameters work now. In fact, I'd argue that introducing a new syntax for this would be inconsistent with the current paradigm. This becomes especially true if initializers are added, where the property would be initialized to a non-null value. Hence adding the ability for it to *never* actually *be* null in the first place... Anthony --047d7b6d934033549004d2937cf0--