Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-07-02 Thread Nikita Popov
On Thu, Jul 2, 2020 at 12:26 PM Dan Ackroyd wrote: > On Wed, 1 Jul 2020 at 20:40, Larry Garfield > wrote: > > > it would also offer a way to do effectively the same thing > > One use-case that would need to be covered for that would be for > callables where you don't know how many parameters the

Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-07-02 Thread Dan Ackroyd
On Wed, 1 Jul 2020 at 20:40, Larry Garfield wrote: > it would also offer a way to do effectively the same thing One use-case that would need to be covered for that would be for callables where you don't know how many parameters there would be in the callable. > duplicate functionality needlessl

Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-07-01 Thread Larry Garfield
On Wed, Jul 1, 2020, at 4:55 AM, Dan Ackroyd wrote: > On Tue, 26 May 2020 at 18:08, Iván Arias wrote: > > Just a Little question. I see this other document in the same repo: > > > > https://github.com/Danack/FunctionTypes/blob/master/3_referencing_functions_and_callables.md > > > > Are you plannin

Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-07-01 Thread Dan Ackroyd
On Tue, 26 May 2020 at 18:08, Iván Arias wrote: > Just a Little question. I see this other document in the same repo: > > https://github.com/Danack/FunctionTypes/blob/master/3_referencing_functions_and_callables.md > > Are you planning to also raise it? Yes, but for PHP 8.1. Although I think it'

RE: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-26 Thread Iván Arias
as. De: Dan Ackroyd<mailto:dan...@basereality.com> Enviado: miércoles, 20 de mayo de 2020 15:01 Para: PHP internals<mailto:internals@lists.php.net> Asunto: [PHP-DEV] Draft RFC callable types + callable type/function autoloading Hi internals, A while ago, I spent some time thinking a

Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-21 Thread Stephen Reay
> On 20 May 2020, at 20:07, Dan Ackroyd wrote: > > Hi internals, > > A while ago, I spent some time thinking about callables, and how they > are not very consistent, which makes people sad: > https://wiki.php.net/rfc/consistent_callables > > The reason I didn't pursue that RFC is that althou

Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-20 Thread tyson andre
Hi Dan Ackroyd, > I'd be happy to see function autoloading support in php overall. > It'd help in avoiding loading unnecessary polyfills, > or in large codebases with many global functions that are only occasionally > used. I forgot, but I'd also started the thread https://externals.io/message/1

Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-20 Thread tyson andre
Hi Dan Ackroyd, > Function + callable type autoloading > https://github.com/Danack/FunctionTypes/blob/master/2_autoloading_part_2.md I'd be happy to see function autoloading support in php overall. It'd help in avoiding loading unnecessary polyfills, or in large codebases with many global functi

[PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-20 Thread Dan Ackroyd
Hi internals, A while ago, I spent some time thinking about callables, and how they are not very consistent, which makes people sad: https://wiki.php.net/rfc/consistent_callables The reason I didn't pursue that RFC is that although tidying up PHP core to be more consistent would be nice, it would