Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105615 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63134 invoked from network); 7 May 2019 15:18:37 -0000 Received: from unknown (HELO mail-lj1-f194.google.com) (209.85.208.194) by pb1.pair.com with SMTP; 7 May 2019 15:18:37 -0000 Received: by mail-lj1-f194.google.com with SMTP id z5so9023900lji.10 for ; Tue, 07 May 2019 05:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QRbCwMgHP5WLWNnSx5SlXLWcmJhbFQ84PEb3Q3DfZKg=; b=jlyO7QRzD+AWG2fq2S2P0mxbvlFZ0+/hOCsdeEq+XTZvYUZ96QhGLyFV4tvYw+uFJi KPDXDMDp8p7l6GewibDyoDBPtCo+Ie3TUW25ZU9IwrUP+5BiJey7fwrcobywv5lgcH2c jFcaqEpDe5ySxIe22xODjcZfi2olCyRXPXM5CYKSYgo60ApVbOJXqRm3b2l/SkI8gJTX JYUy+7vLTb4/nskoMll7vTuwT2qL0jDLa/pFHWTubkYAaBaJFHvSOuTDUtYHG1WalCCp /FbdkwvM3hycKfmltS0k5kL9+PnYJ/N96YxNjKpIwhatrvZvgNChzxmQJNnP+fRbZecr m9Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QRbCwMgHP5WLWNnSx5SlXLWcmJhbFQ84PEb3Q3DfZKg=; b=s7Eurxge7MtT5FpapK53vTzhzz+dAcrNGlGxgtOnvDBscgkYLa+WkZxvVzJ+OcEzJu YcWDq2JyYOed6mw3tfnZEDPcNaGO7XQlZ1s2VBDYr5bpHc7fWv1kDxZlmQQTpuh0hZfw +XeJFhjOFkh6Lzt0LGH5Pbd+N6uVo4ID3XHG5MBfcdb2tokMR7oXPwDQSVOtEoAguFkg yPZPZimcC31W4ZndGI9rAxAMLoWvT2yeFVk8nVnuylaezr93g3Ayl1/GQZ41jdu4Vv8L I02c/EB5ThZyhpi/iCBpyrWo9Pg5ZWaVqYWXw0bNnz10diVKwytFfGxHeO9MMgRjg0zK Mpqg== X-Gm-Message-State: APjAAAXDAI3acsYoKKPk7CmG22oEEZL0/9Zphe8J6I/ptg6mzokBvtpg ZJCmnW7lLI6sFTB3eXGLKh2abeL7BKPl8BOCHqw= X-Google-Smtp-Source: APXvYqyQ+mALrwO0UyJbkWiTu201Mo5HQ05iarh0BSRsWx/iBEMjKqz3FIL6SJxFV5w3ausfXtp/DXLancN7KkA10lY= X-Received: by 2002:a2e:8696:: with SMTP id l22mr3600548lji.43.1557231750473; Tue, 07 May 2019 05:22:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 7 May 2019 14:22:14 +0200 Message-ID: To: Steven Wade Cc: Nicolas Grekas , Marco Pivetta , PHP Internals List Content-Type: multipart/alternative; boundary="00000000000051f2db05884b4534" Subject: Re: [PHP-DEV] Proposal for a RFC From: nikita.ppv@gmail.com (Nikita Popov) --00000000000051f2db05884b4534 Content-Type: text/plain; charset="UTF-8" On Tue, May 7, 2019 at 2:20 PM Steven Wade wrote: > > I want to weight in with what Marco expressed. I have the very same > concerns and they are major ones for many use cases. Mine is VarDumper. > > > > Please don't do this the way it is described. > > > Is there a way that you'd suggest? First of all, TIL some cool things > about "(array) $foo" and how VarDumper uses that, so thank you! Secondly, I > believe the casting syntax is the best user experience and would be a good > addition to the language, so is there any other way at all to maintain > something like VarDumper's functionality without using the casting syntax? > I'd like to find a way to not distrupt too much of what's out there, while > also adding value to the end user. > We can add a separate function to provide this functionality. We should do that anyway because it's both clearer and because (array) already requires some special handling for ArrayObject that could be avoided. Nikita On Tue, May 7, 2019 at 2:20 PM Steven Wade wrote: > > I want to weight in with what Marco expressed. I have the very same > concerns and they are major ones for many use cases. Mine is VarDumper. > > > > Please don't do this the way it is described. > > > Is there a way that you'd suggest? First of all, TIL some cool things > about "(array) $foo" and how VarDumper uses that, so thank you! Secondly, I > believe the casting syntax is the best user experience and would be a good > addition to the language, so is there any other way at all to maintain > something like VarDumper's functionality without using the casting syntax? > I'd like to find a way to not distrupt too much of what's out there, while > also adding value to the end user. > > -- > Steven Wade > stevenwadejr@gmail.com > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --00000000000051f2db05884b4534--