RE: Re: import/use last call

php.internals

Ford, Mike [LSS]

18 years ago
On 23 October 2007 19:57, Gregory Beaver wrote:
> Giedrius D wrote: > > > > Anyway my main question was: is there any reason not to use > keyword "use"? > The only reason for me is that "use" implies some kind of autoloading, > as I suggested in one of my other mails.
H'mm, that's interesting. As I think I've said before, for me "use" implies using something that's already sitting around waiting to be used, whereas "import" suggests an actual "go fetch" action, such as include/autoload (and then using the result). I think I'd be slightly confused by a "use" that does an autoload and an "import" that doesn't. ;) Cheers! Mike ---------------------------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Headingley Campus, Beckett Park, LEEDS, LS6 3QS United Kingdom Tel: +44 113 812 4730 Fax: +44 113 812 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

Stefan Walk

18 years ago
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 25 October 2007 10:52:57 Ford, Mike wrote:
> On 23 October 2007 19:57, Gregory Beaver wrote: > > The only reason for me is that "use" implies some kind of autoloading, > > as I suggested in one of my other mails. > > H'mm, that's interesting. As I think I've said before, for me "use" implies > using something that's already sitting around waiting to be used, whereas > "import" suggests an actual "go fetch" action, such as include/autoload > (and then using the result). I think I'd be slightly confused by a "use" > that does an autoload and an "import" that doesn't. ;) > > Cheers! > > Mike
The "feel" of the words is probably influenced by your background. If you know Perl, you'll say use implies autoloading, if you know Python, you'll say import implies autoloading. Regards, Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHIISVpPjfcppEficRArY0AJoDb6n7SmSLeSzp/nMMmzqfo3fdtwCdEdR6 5zLnW+EmKaAVlr1asYoHFbo= =yzD3 -----END PGP SIGNATURE-----