Daniel Beckham wrote:
> 
> ----- Original Message -----
> From: "Stanislav Malyshev" <[EMAIL PROTECTED]>
> To: "Daniel Beckham" <[EMAIL PROTECTED]>
> Cc: "php-dev" <[EMAIL PROTECTED]>
> Sent: Saturday, October 20, 2001 4:58 PM
> Subject: Re: [PHP-DEV] New zend_compile.c to solve all of the duplicate
> function problems
> 
> > DB>> My argument is that some functionality similar to a C #ifdef and
> > DB>> #ifndef is needed.  Neither the include_once() nor the if/endif
> >
> > Tell me how, for example, Java or Perl programmers manage to live without
> > ifdefs.
> 
> I do not know Java.  In Perl, namespaces exist, so it's a completely
> different ballgame.  But even still, it's not the responsibility of the user
> to know the inner workings of a module or package in Perl.
> 
> > DB>> I already pointed out why include_once() is bad.  You place the
> > DB>> responsiblity of knowing the inner workings of function libraries on
> the
> > DB>> user themselves and not the library.  This is poor programming.
> >
> > No, not at all. If you talk about library, the only thing user should do
> > is package_load("Library") whenever he needs it. See my package proposal.
> 
> You disagree with me, but then your point is so far out in left field, I
> wonder if you read what I wrote?  I think that a package_load("Library")
> idea is great.  And that would also remove the responsibility of knowing the
> inner workings of a function library from the user themselves.  Why are you
> continuing this argument?   You seem to be fixated on something that I said
> quite a few emails back and since then have explained in better detail.
> 
> Please understand.  I *do not* specifically want to see C style macros in
> PHP.  They were an *EXAMPLE* of how one language does it and does it well.
> As Zeev has pointed out, that particular implementation is not a good way to
> do it in PHP due to compile time constraints.  Maybe namespaces would work
> for PHP, maybe we need some sort of implicit directive, it doesn't matter
> what it is, but we do need something.
> 
> My entire argument from the beginning has simply been if you are going to
> take away our original way of doing this due to a bug or whatever, that you
> would add the functionality back into PHP in some way or another.

This discussion, including the package_load stuff, really all relates to
how PHP should support namespaces (and packages).  I agree there needs
to be some statement to "do all the right stuff" for including files
etc.  We have aan old, unused "use" statement in Zend that should be
used for this (this is what it was meant for, but its time had really
not come yet when it was added).

Basically, I think we should postpone fixing all of this for the
ZE2-version of PHP, so we can do it proper.

 - Stig

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to