Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108475 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21424 invoked from network); 11 Feb 2020 14:45:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Feb 2020 14:45:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6F8B8180532 for ; Tue, 11 Feb 2020 04:59:03 -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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (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:59:02 -0800 (PST) Received: by mail-lj1-f194.google.com with SMTP id x7so11485865ljc.1 for ; Tue, 11 Feb 2020 04:59:02 -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=+tH8Qig3rs2qsAJIi7alwEfol+YOBebkPyfmmvJwl50=; b=Oyxc+L74t4LRVifUmeuTmnj12S5RbfrBSa+yFcsilndefbRfq3pyoJvszWNCXOxj2z KIc1nOBXPtWV/PLaWRucw9EQcb6pExnE2TRegfWP2JCKZ4ZZAHg5IXoUQGSzcPDiuvXe NXuD9pnjfYHyixdi0rP61U4pZBAVg+WMq/o9/pmN7W/hAMpP7qs9+yYsJgurxMNqnjZ6 rhtAAdqfT2dV1g+6WzbN/5d4W7mQUrHzPvhANhEoXTkb/UVwSXwqR83Oe+zP6iLpqc8t +ts0h6IoLnwOiEcutWb2RljAGu95OleWeIYwsWwpodWsE6xizekPNLBNoGYk7orABpA4 tLUg== 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=+tH8Qig3rs2qsAJIi7alwEfol+YOBebkPyfmmvJwl50=; b=KSkWg+f6M4BP1ojFxdnbv1KypFNZNpXU+MI8kksvZ0dlbLJ5+EfkD2cF6FP+YeFl47 Hmg9w0GRHi8a1lKuE5SDhkOmrFAcWt+6fhpy/LZ3mS2P8ghCPYuFcP5KZ4E7/GmSbo8r ts27mKwnYvIy6zKVW2gWP52bixzH3VnD94lxlyvIMHNtg5pE5rHMjujS2m7PJRkLDlbl EgOYPiKMp0gEWN/3TaCcYkQJXUHPxSkjNq/Cf7Ah8wG2VTTabXXh87fR+PT6CuP87nrv 91i+5gjlzrSHkZ5chTH+CD3IY2HJ/nuJAOnexa1Hn3uk2kpL+CUoMNY5k3Z2M2cC/6zm tABw== X-Gm-Message-State: APjAAAUGpht96DGgwWLkpcQZucUxB02XOl1ghpTbkVX4133D3sJHQJSP yAixK1nRRjr/2NVfalg1UQ2Lz3SuYQUWQzlZ1Hlc X-Google-Smtp-Source: APXvYqw7+ixaHCJZIavZ2TzlCrdSeMz9CF9TST+/PBMSJ/I4Li2kWbJYAnHzW2TJsZ1wboZ+YkrNmohaaVvBf7gkgOU= X-Received: by 2002:a2e:b0e3:: with SMTP id h3mr4075185ljl.56.1581425941511; Tue, 11 Feb 2020 04:59:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 11 Feb 2020 13:58:50 +0100 Message-ID: To: Nicolas Grekas Cc: Nikita Popov , PHP Internals List Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8 From: guilliam.xavier@gmail.com (Guilliam Xavier) On Tue, Feb 11, 2020 at 1:12 PM Nicolas Grekas wrote: > > > > > 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. But one could argue that "string" is not a verb like "traverse", "serialize", "count", "throw" etc. Potential alternatives would be Stringifyable (or Stringifiable?), StringCastable, StringConvertible... (Even though I personally have no problem with "Stringable") -- Guilliam Xavier