Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105909 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94394 invoked from network); 13 Jun 2019 17:22:30 -0000 Received: from unknown (HELO mail-io1-f49.google.com) (209.85.166.49) by pb1.pair.com with SMTP; 13 Jun 2019 17:22:30 -0000 Received: by mail-io1-f49.google.com with SMTP id k20so17365259ios.10 for ; Thu, 13 Jun 2019 07:35:40 -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=pERPJ+ijRqalRBLNvu1N3vAFeGfVAoCqfm63ZAQWff8=; b=kp826RkJYyOhN0+8zqQTtn/h4IppIx7EBlXYyfUjV1ELRy698Rj+TnvM7Z5kNR72wF E7gknNa5E3QWbBOEUk2zxv7VpMad8a0afRjdL/PwqpHhQHmeUIW3bY0a/muSb53zPJDt QKIkZe11uPaDr7YM+T5M6qWsCUFku0wh18W7sJ4ZeCxH028C3obuzBqXC6F74jlGOgm1 RTWp1c+/cV6P+QLdb5QM8yk4kx4JdTwY3c0RO6DMkbKBxvQgd6onJKfaEFIlSyp4pWUl xPqkSluGV1TM2n/64tAk9K3MWxuN3qLsnhiUQcNVBlHeALPTX0oQ8Zn5QQ6E7smiFZe9 1dmA== 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=pERPJ+ijRqalRBLNvu1N3vAFeGfVAoCqfm63ZAQWff8=; b=rW7cNgA3/42nQpPpnaHfYNsR0Tu5yizaPqNbMO+OmSKhkmyaoYwtNGRCfenDoOBV91 ua8fYKC7oHK46Fm0OyxsKfj7JUQO+5gw8ayVIzVfVgEu0S6kkcVePSJaBIIp7kGrXp4i OOopPSm8p4dOz1ygEXGwOn17grFDGpvDSPNyseROFtazWkQQWcZoulPQio5LFT1Tq+Qx RPI1iL+K87iyQ8+WRevokuzSB0vzOFmrUCRh57VKmfoJIpMGD+wBZDaI7hza8WlDADL9 y5vLxkH+RevilcV8AahhmirPrRWi0kqcCiODSMzuyTwqIeLSMj08ZaYQstJCe8lg9hb4 uutQ== X-Gm-Message-State: APjAAAVMetFZVWC8pKOOZeHKwjkyX326/fO5oeXd9vxJ0BFcVk3pp7/P z297F4rS9Q31o4ORnwosIvzkL9gbnejScncmYnMnmbeDeLU= X-Google-Smtp-Source: APXvYqyJuhyGcNmvg8+a2/vMBGZNKbBks0BoM7KhpAbGT0H6KKFZCPu00Viozv+JDCTiTrk+A6FafeIjU7o64yUXmNw= X-Received: by 2002:a05:6602:220a:: with SMTP id n10mr9699809ion.205.1560436540000; Thu, 13 Jun 2019 07:35:40 -0700 (PDT) MIME-Version: 1.0 References: <1946899E-7EFC-4206-B26D-CD44838315A3@gmail.com> <898DDEB6-4CC3-44F8-8583-BC3AE22C6928@gmail.com> <99792856-D21C-4B52-9717-F09705FD614E@gmail.com> In-Reply-To: <99792856-D21C-4B52-9717-F09705FD614E@gmail.com> Date: Thu, 13 Jun 2019 16:35:27 +0200 Message-ID: To: Steven Wade Cc: Rowan Collins , Internals Content-Type: multipart/alternative; boundary="000000000000a94f6e058b35712b" Subject: Re: [PHP-DEV] Proposal for a RFC From: ocramius@gmail.com (Marco Pivetta) --000000000000a94f6e058b35712b Content-Type: text/plain; charset="UTF-8" On Thu, Jun 13, 2019 at 4:23 PM Steven Wade wrote: > > I guess that's what it comes down to, what *specific* use cases would > this > > feature be intended to help with? Is there some code of your own that > > inspired you to propose it, or something you've seen publically that > would > > benefit from it? > > Originally, it was inspired by seeing Laravel's use of Arrayable as an > interface and if something implements that, calling that class' `toArray()` > method, and wishing that was built in so that frameworks didn't re-invent > the wheel every time. > Interestingly, my work day today is spent mostly removing this kind of behavior from a codebase riddled by it, replacing it with explicit conversions where needed. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --000000000000a94f6e058b35712b--