473,473 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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,

mrb

Jul 17 '05
53 9890
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>
wrote:
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.

Ciao,
___
/_|_\ 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
validator.

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.

Ciao,
___
/_|_\ Umberto Salsi
\/_\/ www.icosaedro.it

Jul 17 '05 #54

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

94
by: Gabriel Zachmann | last post by:
Is it correct to say that strong/weak typing does not make a difference if one does not use any pointers (or adress-taking operator)? More concretely, I am thinking particularly of Python vs C++....
5
by: Lyle Fairfield | last post by:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/callnetfrcom.asp The Joy of Interoperability Sometimes a revolution in programming forces you to abandon all...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.