>From: "Vivian Steller" <[EMAIL PROTECTED]>
> i've a general question concerning PHP's architecture.
>
> Why isn't there a native packaging concept in PHP?
This was also suggested on comp.lang.php, recently (the "nested class"
thread), called "namespaces", but there wasn't a lot of enthusiasm for
>From: "Jochem Maas" <[EMAIL PROTECTED]>
> Terje Slettebø wrote:
> >>From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
> >
> > Ah, I didn't know about that one. I didn't find it here:
> > http://www.php.net/mailin
>From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
> * Terje Slettebø <[EMAIL PROTECTED]>:
> > In PHP5, you can provide "type hints" for functions, like this:
> >
> > class Person {...}
> >
> > function f(Person $p)
>
>From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
> * Terje Slettebø <[EMAIL PROTECTED]>:
> > (I've posted this to the PHP newsgroups, as well, but as many here might
not
> > read them, I post here, as well. I hope that's not considered
> Terje Slettebø wrote:
> > I don't find this answer satisfactory. Yes, PHP has loose/weak typing,
but
> > at any one time, a value or a variable has a distinct type. In the
example
> > in the quote above, you'd have to ensure that the value you pass is of
the
>
Ahem, in my posts, substitute "static typing" with "explicit/manifest
typing" (specifying the type of variables/parameters). After all, these are
checked at run-time, so a call that's not made won't be checked.
Regards,
Terje
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
(I've posted this to the PHP newsgroups, as well, but as many here might not
read them, I post here, as well. I hope that's not considered "overboard",
and if so, please let me know)
To round off my trilogy of "why"'s about PHP... :) If this subject have been
discussed before, I'd appreciate a poi
(I've posted this to the PHP newsgroups, as well, but as many here might not
read them, I post here, as well. I hope that's not considered "overboard",
and if so, please let me know)
Well, as is customary when you're new to a group, you tend to post quite a
bit, :) so here's one more. Some things
(I've posted this to the PHP newsgroups, as well, but as many here might not
read them, I post here, as well. I hope that's not considered "overboard",
and if so, please let me know)
Hi.
I'm new here, and sorry if this has been discussed before; I didn't find it
searching the PHP groups. (I've al
9 matches
Mail list logo