Re: Function auto-loading

From: Date: Mon, 08 Aug 2016 17:03:27 +0000
Subject: Re: Function auto-loading
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-94941@lists.php.net to get a copy of this message
> > If not, I don't see why we ever need to be able to autoload global > functions. "You want autoloading? Put it in a namespace." Like I say, that > leaves the very small edge case of a single namespace spanning multiple > files, and an autoloader implementation able to include one of them when a > function is called from another. I'm not sure why you would think a single namespace spanning multiple files is a "very small edge case". I disagree. Here are some libraries I am aware of *off the top of my head* that use functions the same namespace across multiple files: - https://github.com/nikic/iter - https://github.com/lstrojny/functional-php As well as several of my personal projects. I do not think this is a "very small edge case."

« previous php.internals (#94941) next »