#30506 [Com]: Symbolic Includes
| From: | rakaur at malkier dot net | Date: | Tue, 09 Nov 2004 13:34:56 +0000 |
| Subject: | #30506 [Com]: Symbolic Includes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68842@lists.php.net to get a copy of this message | ||
ID: 30506
Comment by: rakaur at malkier dot net
Reported By: rintaun at projectxero dot net
Status: Feedback
Bug Type: Feature/Change Request
PHP Version: Irrelevant
New Comment:
Symbolic includes import the symbol table for the given namespace into
the current namespace (such as in Python, Perl, D, Ruby, Java, etc)
instead of textually replacing the include call with the file's
contents. You more commonly see this used with
import rather than
include.
Since PHP has no notion of namespaces or cleanliness (it just throws
everything into one big namespace) I don't see how this would be
accomplished without some semi-large changes to the way the language
works.
Perhaps something like Perl's use (which imports the namespace into
the current namespace, but doesn't do a textual include) versus Pelr's
require (which requires you to access the namespace seperately via
$Namespace::).
Another way to compare/contrast would be Python's import' versus from
<something> import <something`. The former requires the use of a new
namespace, the latter imports symbols into the current namespace.
I hope that answers some questions.
Previous Comments:
------------------------------------------------------------------------
[2004-11-09 13:11:00] derick@php.net
And me neither...
------------------------------------------------------------------------
[2004-11-09 10:10:38] tony2001@php.net
Personally I can't understand what are you talking about.
------------------------------------------------------------------------
[2004-11-09 09:45:16] rintaun at projectxero dot net
PHP uses text includes, ie. it simply replaces the include() call with
the file that is being included. However, symbolic includes are
included.. well, symbolically.
------------------------------------------------------------------------
[2004-10-21 09:17:35] derick@php.net
What are symbolic includes?
------------------------------------------------------------------------
[2004-10-21 02:42:10] rintaun at projectxero dot net
Description:
------------
Requesting symbolic includes, as opposed to standard text includes.
Symbolic includes are so much cleaner than text includes, and would
make developing some applications in PHP much easier.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30506&edit=1