Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105686 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73045 invoked from network); 13 May 2019 16:41:14 -0000 Received: from unknown (HELO mail-yw1-f47.google.com) (209.85.161.47) by pb1.pair.com with SMTP; 13 May 2019 16:41:14 -0000 Received: by mail-yw1-f47.google.com with SMTP id t5so5131533ywf.10 for ; Mon, 13 May 2019 06:46:39 -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=BwOVNOiXjrIp/L0LlFQtVAt151kKPbzeggv5wHwEo3c=; b=aNpMdst+rFNN+TIzDx39aY71FwFkP/QpwJJaGorWsS7vjpurPWPcpJEmgBs4F0RCdG 5bEUYEfcndw1fScwOSXJBT/BNrCNbgNMNv8vCfJIRk9VBsFCQHRUeAtJb0SQ8cm2C40r m79A02wgSUxXKwLCzIY56e6pMXRPfSI9Woz8wmx+JOp2NDu3084uuOaJZrAz8+TRqigT o2JGyRFAPv0bdaqPLdtfngPT6lBLwCMWUqbBgdM0LEg08FdGlubUfzwi+XdWnJVkiCEp FRRN9x8QGtSHedaDEpp0UpZCrM1yD9i6HQOq1OytiOZXlHYUJk2+bitKvx9V44d6np28 PKoQ== 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=BwOVNOiXjrIp/L0LlFQtVAt151kKPbzeggv5wHwEo3c=; b=Pe7RhLpZZBVxeZouNahxguNU2IGhi8oCPT9kpVdaFpXiTASRo6Ed2MXSPGpdtcIzW9 74g3MHwKeB4ea2R4JRCcmjYL1+Um9dgaNBuSmV2mx80CeYMFfL0jt+5TLpwB3UrRs+xI jpInBmZ8OZJDKtWz+oh7/p3zYFxv11MgqPhctUUM/o7VqsfqOZeuCCYRtVIs/ARt4eaU uztbhm2JbyRpfeOYLcwYyLwiKSqeGjXQEF16qCHhB5f35rObereZoN+FjtoGcQ/tFyss c68PdYbF2etIhTQfkr1Pw17YhxrK/laq4yM4cADk+3NBnAOHspAs4B9O0BzHs1c5D+Ki MjbQ== X-Gm-Message-State: APjAAAXI+48tTlrwL+P3Ux5HlcbYB1j7DftLyS2ybN2qxiP0Tr+KZL0M hy8VCc51rm6KEiqbDNOTx3Nem/wUC50= X-Google-Smtp-Source: APXvYqwQbZrAsauGHpPdrdt7bd2ttRNVIHtuIKiDTdFSIAgSqydOwY3kwiw9mK6nI4wpfdrRjqahwQ== X-Received: by 2002:a0d:d4cf:: with SMTP id w198mr14960025ywd.24.1557755198417; Mon, 13 May 2019 06:46:38 -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 f6sm3909508ywf.37.2019.05.13.06.46.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 06:46:37 -0700 (PDT) Message-ID: <1946899E-7EFC-4206-B26D-CD44838315A3@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_6E292AF0-F5D9-4959-AD22-27F997D643C6" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Date: Mon, 13 May 2019 09:46:36 -0400 In-Reply-To: Cc: Jessica Mauerhan To: Internals References: X-Mailer: Apple Mail (2.3445.104.8) Subject: Re: Proposal for a RFC From: stevenwadejr@gmail.com (Steven Wade) --Apple-Mail=_6E292AF0-F5D9-4959-AD22-27F997D643C6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On May 4, 2019, at 10:58 AM, Steven Wade = wrote: >=20 > Hi Internals team! >=20 > I have an idea for a feature that I'd love to see in the language one = day and wanted to run the idea by you all.=20 >=20 > The idea is to add a new magic method "__toArray()" that would allow a = developer to specifiy how a class is cast to an array. The idea is the = same mentality of __toString(), but, for arrays. >=20 > I would personally love this feature and those I've run it by were = also excited by the idea. So I'm soliciting feedback in hopes that = things go well and I can officially write the RFC. As for = implementation, Sara Golemon is awesome and while chatting a few months = back, knocked out a proof-of-concept implementation = . = There's still work to be done if this proposal gets to the RFC phase, = but again, just gauging interest here. >=20 > I appreciate any feedback you all can provide. >=20 > Thanks, >=20 > - Steven Wade Hi all, I wanted to re-ping the list to see if there is any more = feedback on this proposal? Any technical concerns or true BC changes? This feature wouldn't be as exciting as the others in 7.4, but I think = it'd be a nice little helper, and the community feedback I've received = from developers has been positive, so I'd like to keep the conversation = going. -- Steven Wade stevenwadejr@gmail.com --Apple-Mail=_6E292AF0-F5D9-4959-AD22-27F997D643C6--