Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108468 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 6814 invoked from network); 11 Feb 2020 13:58:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Feb 2020 13:58:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CD5FC180533 for ; Tue, 11 Feb 2020 04:12:27 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 11 Feb 2020 04:12:27 -0800 (PST) Received: by mail-ot1-f53.google.com with SMTP id d3so9834650otp.4 for ; Tue, 11 Feb 2020 04:12:27 -0800 (PST) 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=DYtPqHs3A1c6SPpSRpjn5RCauXc/vOPqV7lZ+PcisHg=; b=bAM3BJEHxY4HdSFDC0XXCF+IFOsvxmmffaiYSeYJkgmqrTxKHbjicKB5+beB8hXL5S MsbnHfdF4nH/47oqa1aOYfAoUcLyfSnP9libVnCTYNSGzN0CLGhH8GKkptpfCr4HJAOj MigCeAm6kVYRlT9yPvS1mrPedcBnNxEfLXPHDerR947xw6w4iJl8SWvXptXbKbtgR2z7 H1v0W5JtovkR5oCc+BmvFy6LEcwKz4wFRLncf/EvZGW0ngztzKrip3c4ltdy5a5selfb o+KDyDm0/S4dow0HpJ/E9j/yvsdfxapgjLpBLSomWT2puUtq2qDz2FhM6liF28V/cc+M Lxag== 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=DYtPqHs3A1c6SPpSRpjn5RCauXc/vOPqV7lZ+PcisHg=; b=CURfMlVu6r6EqKz3k8wUCEERorg6fnfWk8LrqiJjDyeTrCMaofNA9db1FNLzEr5bG8 CKVvorDV/M5iOyGDvrFfa6ikkwsOc+PqGCmLMkVUFxEfqYSHyV0TekZdWejq2pp7WcKi yBBlOqwI+IR1bMvt5OviCPjIQiI1hP5ALyBXrxwI+a95ZSrHPFPBvCuwxaUTbcJ8HTG9 6ZksYlEiWJpc235EOrN31wp2HVGQ+hUMS8v9ojbRb5LbEg5Lj0UyKS95ytha6kMBJ9fd zZahaB8SbR9rOYjyOkOjYGjJxVTKgKZ4eWfLxgSPdG8bbTkNhijbecrMBfSIhpZmrUb0 l9Bg== X-Gm-Message-State: APjAAAVCFpRdfC6mNBAm4Op0Gous2ouho/93GtuN28vsW6upUGUCIyIe tc5vNaunR/abCBXJ/fwtG4zpsLGBK+bKiFAVWhY= X-Google-Smtp-Source: APXvYqxLCpD+6mRd7wdPu6+CtfVX6xBvwtTMxM4c+0uIk6nPCzhSoUr6rm+lwEdR7GKydxOvQ97uPF3kGsFmmCcAbCs= X-Received: by 2002:a05:6830:1198:: with SMTP id u24mr4762105otq.215.1581423140650; Tue, 11 Feb 2020 04:12:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 11 Feb 2020 13:12:08 +0100 Message-ID: To: Nikita Popov Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000089c534059e4bc4b5" Subject: Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8 From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --00000000000089c534059e4bc4b5 Content-Type: text/plain; charset="UTF-8" > > Just so someone has mentioned it... is "Stringable" really the best name > for this interface? Reddit really didn't like it ;) Some possible > alternatives: ToString, HasToString, CastsToString. > Naming things... I'm not sure reddit is the way to lobby php-internals... I proposed Stringable because it is the most consistent to me: Traversable, Serializable, Countable, Throwable, JsonSerializable all are related to some special engine behavior, which this ones also is. I'm on the side of keeping Stringable. > Something to keep in mind is that there has been a recent proposal for > "Arrayable" as well, and that had very different semantics (not about > __toArray() at all) > I didn't take part on this discussion, but I'm totally on Marco's side on this one, I really hope this will NOT make it into the engine, for the reasons he gives... :) Nicolas --00000000000089c534059e4bc4b5--