Re: T_IMPORT vs. T_USE
| From: | Giedrius D | Date: | Tue, 02 Oct 2007 18:19:08 +0000 |
| Subject: | Re: T_IMPORT vs. T_USE | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32565@lists.php.net to get a copy of this message | ||
Same here.
On 10/2/07, Ford, Mike <M.Ford@leedsmet.ac.uk> wrote:
> On 02 October 2007 07:16, Sebastian Nohn wrote:
>
> > Andi Gutmans wrote:
> > > Hi Johannes,
> > > Our preference would be to stick to "import" because I
> > think the perception many will have of "use" is that it also
> > includes files (just based on some other languages).
>
> I don't know much about "other languages", but purely in terms of English I
> would expect "use" to work with something that's already lying around ready to be
> used, whereas "import" would go and fetch something from somewhere else and make it ready
> to be used in the current context. In other words, I would probably expect "import" to
> potentially have an implied "include", and "use" not to.
>
> But then, in the global polyglot marketplace, this argument may not have much force!! ;)
>
> Cheers!
>
> Mike
>
> ---------------------------------------------------------------------
> Mike Ford, Electronic Information Services Adviser,
> JG125, The Headingley Library,
> James Graham Building, Leeds Metropolitan University,
> Headingley Campus, LEEDS, LS6 3QS, United Kingdom
> Email: m.ford@leedsmet.ac.uk
> Tel: +44 113 812 4730 Fax: +44 113 812 3211
>
>
> To view the terms under which this email is distributed, please go to \+ÏDÇ_½Á¯+*
> ´http://disclaimer.leedsmet.ac.uk/email.htm
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Giedrius