Re: [PHP-DEV] [CONCEPT][DISCUSSION] Allow objects to declare emptiness and by extension truthiness

2020-07-12 Thread Larry Garfield
On Sun, Jul 12, 2020, at 12:48 PM, Josh Bruce wrote: > Latest version as we zero in on what this is really about: > https://bit.ly/php-0002 > > Other threads: > > 1. https://externals.io/message/110879 > 2.

[PHP-DEV] Re: VCS Account Request: ondrejmirtes

2020-07-12 Thread PHP Group
VCS Account Rejected: ondrejmirtes rejected by kalle /o\ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] [CONCEPT][DISCUSSION] Allow objects to declare emptiness and by extension truthiness

2020-07-12 Thread Josh Bruce
Latest version as we zero in on what this is really about: https://bit.ly/php-0002 Other threads: 1. https://externals.io/message/110879 2. https://externals.io/message/110881 Thanks for all

Re: [PHP-DEV] [CONCEPT][DISCUSSION] Instance as boolean

2020-07-12 Thread Josh Bruce
> > Focusing on Bool is, I think, a good choice because it has an argument for it > other than "well it works for strings." You hint at it in the writeup but > really bury the lead: Null objects. > > Being able to not use null or false as a "not found" case and instead return > an "empty"

Re: [PHP-DEV] [VOTE] Named arguments

2020-07-12 Thread Manuel Canga
Hi, Rowan, En dom, 12 jul 2020 14:19:08 +0200 Rowan Tommins escribió > The problem with this, whether built in or not, is that you have to express > everything with strings rather than keywords. That means, for instance, that > invalid values in the definitions themselves

Re: [PHP-DEV] Re: [RFC] Nullsafe operator

2020-07-12 Thread Ilija Tovilo
Hi internals >> https://wiki.php.net/rfc/nullsafe_operator > > There's a remaining complication with references which I had limited > time to work on. This doesn't technically need to be fixed to start > the vote but if it can't be solved reasonably it would have to be > described in the RFC

Re: [PHP-DEV] [VOTE] Named arguments

2020-07-12 Thread Rowan Tommins
On 12 July 2020 11:24:50 BST, Manuel Canga wrote: >4. Other option is creating a new function( not yet available in PHP ) >like: > >``` >array_check_scheme( array $array, array $scheme, bool $forced = false >): bool >``` The problem with this, whether built in or not, is that you have to

Re: [PHP-DEV] [VOTE] Named arguments

2020-07-12 Thread Manuel Canga
Hi, En vie, 10 jul 2020 16:18:40 +0200 Benjamin Eberlei escribió > On Fri, Jul 10, 2020 at 11:21 AM Marco Pivetta wrote: > > > Hi Nikita, > > > > I kept my "NO" stance here, as per discussion in > > https://externals.io/message/110004#110005, where I provided (in my > >