On 8/8/2016 10:23 PM, Davey Shafik wrote:
> On Mon, Aug 8, 2016 at 1:15 PM, Rasmus Schultz <ras...@mindplay.dk> wrote:
>> Okay, so it doesn't deal with namespaced constants, and maybe this is me
>> being opinionated, but who's going to import constants one by one?
>> Constants are usually better off grouped together in a class. Although I
>> don't suppose there's any reason this concept couldn't be expanded to work
>> for constants as well, for completeness at least - though I have doubts
>> that very many people would care...
>>
>> Anyways, just spitballing here :-)
>>

I mentioned auto-loading of constants because it would be nice to have
single consistent auto-loading mechanism in PHP for every importable
thing. This currently includes classes, interfaces, traits, functions,
and well constants.

The current composer approach of simply loading the file on every
request regardless of whether you need it ever or not works nicely too.

On 8/8/2016 10:23 PM, Davey Shafik wrote:
> Related to this, I'd like to see stream (and stream filter) autoloading.
> Essentially, if you fopen("random://foo")  it'll pass that string to an
> autoloader that will load and register the stream. It fails if at the end
> of the autoloader the stream isn't registered.
> 
> Similar for filter and stream_filter_(pre|ap)pend() and loading stream
> filters.
> 
> - Davey
> 

All resource related stuff is meant to die anyways from what I read and
was told in the past here and on GitHub so I guess this will not come.

-- 
Richard "Fleshgrinder" Fussenegger

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to