Re: [PHP-DEV] [RFC] Mixed type

2020-04-30 Thread Dan Ackroyd
Bob Weinand wrote: > Mixed is a hack, do not use mixed. > ... > As such the introduction of mixed is pretty much necessary. > I'm actually in favor of introducing it. Matthew Brown wrote: > I'm opposed to the use mixed in codebases ... > A type system without an explicit mixed type feels

Re: [PHP-DEV] [RFC] [DISCUSSION] Ensure correct magic methods' signatures when typed

2020-04-30 Thread Dan Ackroyd
On Tue, 28 Apr 2020 at 17:32, Gabriel Caruso wrote: > > If there are no further requests or comments, I'll open this RFC for voting > next Friday. Hi Gabriel, I think it would be better to hold off until the mixed RFC has been voted on. If that passes, the four signatures that still have mixed

Re: [PHP-DEV] [VOTE] match expression

2020-04-30 Thread Rowan Tommins
On Thu, 30 Apr 2020 at 13:18, Ilija Tovilo wrote: > There are three potential use cases for language wide block expressions. > > 1. Match expressions > 2. Arrow functions > 3. Everything else > > The problem is that they all have slightly different semantics. > [...] > I don't think that's

Re: [PHP-DEV] [VOTE] match expression

2020-04-30 Thread Илья Сомов
Hi! I am quite new to the internals list, but wanted to say a word, to maybe lit some light on the discussion, for you to be able to look at it from slightly another angle. I have noticed this whole thread arguing whether it is required or not to support `match` keyword in an if-else-ish

Re: [PHP-DEV] [VOTE] match expression

2020-04-30 Thread Илья Сомов
meh, sorry, i top-posted by incident. I did not have the e-mails to respond to (because i have just subscribed to the ML), therefore i thought if i post with the same subject, my mail will add up to the same thread. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] Re: [VOTE] Stricter type-checks for arithmetic/bitwise operators

2020-04-30 Thread Nikita Popov
On Thu, Apr 16, 2020 at 12:46 PM Nikita Popov wrote: > Hi internals, > > I have opened voting on > https://wiki.php.net/rfc/arithmetic_operator_type_checks. Voting closes > 2020-04-30. > The RFC has been accepted unanimously with 57 votes in favor. Nikita

[PHP-DEV] PHP 7.3.18RC1 is available for testing

2020-04-30 Thread Christoph M. Becker
PHP 7.3.18RC1 has just been released and can be downloaded from: Or use the git tag: php-7.3.18RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system. 7.3.18 should be expected

[PHP-DEV] PHP 7.4.6RC1 is available for testing

2020-04-30 Thread Derick Rethans
PHP 7.4.6RC1 has just been released and can be downloaded from: Or use the git tag: php-7.4.6RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system at .

[PHP-DEV] Ternary operator associativity

2020-04-30 Thread Ryan Jentzsch
Is there a possibility this can be fixed in version 8? From http://phpsadness.com/sad/30 listed as an outright bug (I don't have the C skills to fix this. I am just raising this as an issue that has been a criticism of PHP for many years now with a new major version upcoming that could allow for a

Re: [PHP-DEV] Ternary operator associativity

2020-04-30 Thread Nikita Popov
On Thu, Apr 30, 2020 at 1:12 PM Ryan Jentzsch wrote: > Is there a possibility this can be fixed in version 8? From > http://phpsadness.com/sad/30 listed as an outright bug (I don't have > the C skills to fix this. I am just raising this as an issue that has > been a criticism of PHP for many

Re: [PHP-DEV] [VOTE] match expression

2020-04-30 Thread Ilija Tovilo
Hi someniatko I think you have a firm grasp of the key issues but I don't agree with your conclusion. > Problem no. 2 could be addressed by > allowing "complex" expressions consisting of, potentially, few > statements, language-wide, solving the issue both for short closures > and for `match` I