471,893 Members | 2,049 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,893 software developers and data experts.

Will php ever do strong typing?

Will php 6 do strong typing and/or namespaces?

I was shocked to find out today that there are some people who actually
argue that weak typing is somehow better. I didn't even know there was
a debate. Shocking. That's like arguing that square tires are better
than round.

Anyway if anyone knows that php is going to intentionally stay weak in
the future let me know so I can jump ship, thanks,


Jul 17 '05
53 9729
dt******@hotmail.com wrote:
I already have like 30 running as we speak.

If you are as experienced as that, and think that PHP is not
restrictive enough, I think that speaks volumes about your programming
skills. If you need to be restricted like that, maybe it's time you
thought about a career where you don't have to think so hard.

Jul 17 '05 #51
On Thu, 26 May 2005 23:33:22 +0100, CJ Llewellyn <cj**********@gmail.com>
I guess you've never tried coding Lotus Note's OLE API in C++ have you?

*gnashes teeth* :-(

Haven't done it in C++ though - managed to stay isolated from some of the
levels of ickyness by running it through Win32::OLE in Perl.

Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #52
dt******@hotmail.com wrote:
This looks like it could be perfect for what I need. But does it only
work with base types like string and int, or can it check object types
that I define?

/*MyObject*/ function getthing(/*MyThing*/ mt, /*MyArrayList/* arl) {

etc etc ?

Currently only base-types are allowed: boolean, int, float, number,
int, float, string, array, resource, mixed, void.

Classes are still to be implemented in phplint: they are parsed, but can't be
used in meta-declarations. I'm planning to cover classes and methods soon,
so that class names may be used in declarations just as expected.

/_|_\ Umberto Salsi
\/_\/ www.icosaedro.it

Jul 17 '05 #53
"Christian Barmala" <ch***************@gmx.net> wrote:
That's very interesting, but www.phpdoc.org also defines meta-code inside
comments. Do I have to declare every variable, function, parameter twice,
i.e once for phpline and once for phpdoc or more awful will the comment of
one type confuse the other engine?

Nothing need to be declared twice: the phplint meta-code is "orthogonal"
to the DocBlock meta-code, since they use different conventions on
multi-line comments. The phplint meta-code just add some info for the

Sure, it should be better an integrated system that include either
meta-code for the validator and meta-code for the documentation system.
By now I'm concentrating on extensions to the PHP language that are
usefull for the validator. The documentation capabilities may be an
interesting additional feature for phplint, but this is not the primary
goal of the validator.

/_|_\ Umberto Salsi
\/_\/ www.icosaedro.it

Jul 17 '05 #54

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.