Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105623 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 90421 invoked from network); 7 May 2019 16:04:35 -0000 Received: from unknown (HELO mail-yw1-f46.google.com) (209.85.161.46) by pb1.pair.com with SMTP; 7 May 2019 16:04:35 -0000 Received: by mail-yw1-f46.google.com with SMTP id n76so4518780ywd.1 for ; Tue, 07 May 2019 06:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=tvzzm60Zl8sAvjxfcvCzuG4lgZp2DK98soxg216id/4=; b=khWBiQAEgrPNCcXFOMaTEpgIXXQ+cViVTfM9jWQKvYq6JEgsTFI/itSJau0U9f6VJx Ck2EHOVsLqdJs6u2r3BIOJM9PQtL+137b2Re7e+vkt8dul3e2ReYldN1sIOcAEykd8zL N74vQgQBaQ17sir9+AQym5v5LaRut8b1TMf32A8ZhQtFcV+Sgm2qA28foU42N8gFaAJo TpxINgyoNwPx8dUOAtlPosLzgsP/HDWnTN85NJ6SaRxgREBoeBj3xGJmARDka4kg9Mnd 4/Ul+9n+o3EFzAby/rGrm7ocCEqXIBWar353G6AEmcRA655yap6FxIzlWqfRsKDy3CCn mClg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=tvzzm60Zl8sAvjxfcvCzuG4lgZp2DK98soxg216id/4=; b=hCwnZUesEbxlFXbYBhjHzd+0SoCvJgiesRtVJSSygrSiEehpkCQP8mZwjxFb9L0wEF JKUREepd7DGlk74h6k4MhmrpGucHrsb0egVgt8dtWHIntauJh0gLt/87JiKixSi4tcyV SMI6jzdLUATM2VhfsTV85D54tf23ZFa+V3sZkpNC/SBoS6LOlBdtsBYZJ2TacOC6PCQY CNazViw90BaA57UCFjHC6noGlzG5IBaNJRfZ/RUDFEHE0o5aFBl8kVF0XcmMww9fM7NY vzzzvtEOaDsJru6BmoyPjtCiFI69JmdeJuHqRQdUcerNDuKPbuVdOUsie5tfJT0jX8jw Aqmg== X-Gm-Message-State: APjAAAV6c/OR7er+Fzg5wTah8xuzq3hOIVtPhHryWeY1J40fFTu+7g0P dL8TdeUgBlDEnG8g7ebjm6c= X-Google-Smtp-Source: APXvYqzoVatuuKdiWpux1/HegCRyqiuxwUrk/4dvg8Zvy2hvyOPJrnqBS5YsoP0sKAS6pnO7lsyAbg== X-Received: by 2002:a0d:cbc8:: with SMTP id n191mr20392859ywd.59.1557234508767; Tue, 07 May 2019 06:08:28 -0700 (PDT) Received: from [192.168.86.89] (99-63-227-78.lightspeed.gnvlsc.sbcglobal.net. [99.63.227.78]) by smtp.gmail.com with ESMTPSA id l12sm3699639ywb.60.2019.05.07.06.08.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 06:08:28 -0700 (PDT) Message-ID: <2236CE8B-0379-4E92-BDC9-2CE5D6F211BC@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_C185C587-BF09-40E9-A8FB-163DCAE85522" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Date: Tue, 7 May 2019 09:08:26 -0400 In-Reply-To: Cc: Ben Ramsey , PHP Internals List To: Marco Pivetta References: <384B1934-FC7A-414D-BC31-E5521B2F0E17@benramsey.com> <1BC31028-45B2-4CE6-B85C-EDFD3484DA98@gmail.com> X-Mailer: Apple Mail (2.3445.104.8) Subject: Re: [PHP-DEV] Proposal for a RFC From: stevenwadejr@gmail.com (Steven Wade) --Apple-Mail=_C185C587-BF09-40E9-A8FB-163DCAE85522 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Marco, > The alternative is to expand the reflection API with an array cast = operation in there, and then migrate existing userland usages to that to = retain BC. That's an interesting proposal - adding new reflection abilities. Hm.. > In addition to that, as someone that used to write a lot of = `__toString()` (and now doesn't do that anymore), a clear API and = interfaced (non-magic) `toArray()` is more powerful and useful. I see you and I hear you. After 12 years, still like the magic of PHP. I = like that casting is quick, simple, and is less verbose when = writing/reading. But I'm not opposed to further discussing possible = solutions. If this gets to the RFC stage, I'd prefer it be the best = option for the language and most likely to pass. -- Steven Wade stevenwadejr@gmail.com --Apple-Mail=_C185C587-BF09-40E9-A8FB-163DCAE85522--