Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread Ben Ramsey
> On Feb 11, 2020, at 07:20, Aimeos | Norbert Sendetzky > wrote: > > Am 11.02.20 um 14:11 schrieb Michał Brzuchalski: Traversable, Serializable, Countable, Throwable, JsonSerializable all are related to some special engine behavior, which this ones also is. >>> >>> But one could arg

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread Aimeos | Norbert Sendetzky
Am 11.02.20 um 14:11 schrieb Michał Brzuchalski: >>> 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

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread Guilliam Xavier
On Tue, Feb 11, 2020 at 2:11 PM Michał Brzuchalski wrote: > > wt., 11 lut 2020 o 13:59 Guilliam Xavier > napisał(a): >> >> 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 interfa

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread Michał Brzuchalski
wt., 11 lut 2020 o 13:59 Guilliam Xavier napisał(a): > 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: To

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread 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

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread Nicolas Grekas
> > 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 b

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread Aimeos | Norbert Sendetzky
Am 11.02.20 um 12:58 schrieb Nikita Popov: > 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. I would vote for "Stringable" because PHP already has inte

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread Nikita Popov
On Tue, Feb 11, 2020 at 9:57 AM Nicolas Grekas wrote: > Le lun. 27 janv. 2020 à 10:19, Nikita Popov a > écrit : > > > On Wed, Jan 22, 2020 at 4:47 PM Nicolas Grekas < > > nicolas.grekas+...@gmail.com> wrote: > > > >> Hello everyone, > >> > >> as announced last week, I'm officially opening a disc

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-02-11 Thread Nicolas Grekas
Le lun. 27 janv. 2020 à 10:19, Nikita Popov a écrit : > On Wed, Jan 22, 2020 at 4:47 PM Nicolas Grekas < > nicolas.grekas+...@gmail.com> wrote: > >> Hello everyone, >> >> as announced last week, I'm officially opening a discussion for adding a >> "Stringable" interface to PHP 8. >> >> The RFC and

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-01-27 Thread Mike Schinkel
> On Jan 27, 2020, at 10:55 AM, Larry Garfield wrote: > > On Mon, Jan 27, 2020, at 10:19 AM, Nikita Popov wrote: >> Automatically implementing interfaces based on implemented methods could >> also be a general language feature (see Go interfaces for example), but >> likely not one we're intereste

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-01-27 Thread Larry Garfield
On Mon, Jan 27, 2020, at 10:19 AM, Nikita Popov wrote: > On Wed, Jan 22, 2020 at 4:47 PM Nicolas Grekas > wrote: > > > Hello everyone, > > > > as announced last week, I'm officially opening a discussion for adding a > > "Stringable" interface to PHP 8. > > > > The RFC and its rationale are presen

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-01-27 Thread Nicolas Grekas
Le lun. 27 janv. 2020 à 10:19, Nikita Popov a écrit : > On Wed, Jan 22, 2020 at 4:47 PM Nicolas Grekas < > nicolas.grekas+...@gmail.com> wrote: > >> Hello everyone, >> >> as announced last week, I'm officially opening a discussion for adding a >> "Stringable" interface to PHP 8. >> >> The RFC and

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-01-27 Thread Nikita Popov
On Wed, Jan 22, 2020 at 4:47 PM Nicolas Grekas wrote: > Hello everyone, > > as announced last week, I'm officially opening a discussion for adding a > "Stringable" interface to PHP 8. > > The RFC and its rationale are presented here as required: > https://wiki.php.net/rfc/stringable > > The patch

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-01-24 Thread Nicolas Grekas
Le mer. 22 janv. 2020 à 20:03, Rowan Tommins a écrit : > On Wed, 22 Jan 2020 at 15:47, Nicolas Grekas > > wrote: > > > Hello everyone, > > > > as announced last week, I'm officially opening a discussion for adding a > > "Stringable" interface to PHP 8. > > > > The RFC and its rationale are prese

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-01-22 Thread Rowan Tommins
On Wed, 22 Jan 2020 at 15:47, Nicolas Grekas wrote: > Hello everyone, > > as announced last week, I'm officially opening a discussion for adding a > "Stringable" interface to PHP 8. > > The RFC and its rationale are presented here as required: > https://wiki.php.net/rfc/stringable > I'm still u

Re: [PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-01-22 Thread Benjamin Eberlei
On Wed, Jan 22, 2020 at 4:47 PM Nicolas Grekas wrote: > Hello everyone, > > as announced last week, I'm officially opening a discussion for adding a > "Stringable" interface to PHP 8. > > The RFC and its rationale are presented here as required: > https://wiki.php.net/rfc/stringable > > The patch

[PHP-DEV] [RFC] Adding a "Stringable" interface to PHP 8

2020-01-22 Thread Nicolas Grekas
Hello everyone, as announced last week, I'm officially opening a discussion for adding a "Stringable" interface to PHP 8. The RFC and its rationale are presented here as required: https://wiki.php.net/rfc/stringable The patch is found on GitHub, where some discussions happened already, you might