# import/use last call

- Thread: https://externals.io/message/32977
- Original archive: https://news-web.php.net/php.internals/32977
- Started by Ford on 2007-10-25T08:52:57+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #32977 — Ford — 2007-10-25T08:52:57+00:00

URL: https://externals.io/message/32977#32977

> Giedrius D wrote:
> > […]
> 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

---

## #32978 — Stefan Walk — 2007-10-25T11:56:58+00:00

URL: https://externals.io/message/32977#32978 · In reply to: #32977

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> 
> > […]
>
> 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
