Re: [PHP] General question: packaging in PHP

2005-01-30 Thread Terje Slettebø
>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

Re: [PHP] Re: Why is access and visibility mixed up in PHP?

2005-01-23 Thread Terje Slettebø
>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

Re: [PHP] Re: Why no type hints for built-in types?

2005-01-23 Thread Terje Slettebø
>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) >

Re: [PHP] Re: Why is access and visibility mixed up in PHP?

2005-01-23 Thread Terje Slettebø
>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

Re: [PHP] Why no type hints for built-in types?

2005-01-23 Thread Terje Slettebø
> 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 >

Re: [PHP] Why no type hints for built-in types?

2005-01-22 Thread Terje Slettebø
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

[PHP] Why no overloading in PHP5?

2005-01-22 Thread Terje Slettebø
(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

[PHP] Why is access and visibility mixed up in PHP?

2005-01-22 Thread Terje Slettebø
(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

[PHP] Why no type hints for built-in types?

2005-01-22 Thread Terje Slettebø
(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