Re: Introducing EXCPLICIT
| From: | J Smith | Date: | Thu, 06 Jun 2002 16:35:26 +0000 |
| Subject: | Re: Introducing EXCPLICIT | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-84947@lists.php.net to get a copy of this message | ||
I wouldn't take my opinion as law, as I'm not part of the core PHP Group or
anything, so I don't speak for anyone but myself. All I'm saying is that I
seem to remember this issue being brought up before, and the result was
that PHP is not a strong typed language, and probably won't become one any
time soon.
A couple of weeks ago the discussion kind of stirred up again with the idea
of "string types".
You can sort of do your own data type checks now using is_int(), is_array(),
etc., which although falls short of true strong typing, is better than
nothing.
If you want to move to C#, super. Use the tool that fits the job. But I hope
to hell you aren't doing it just 'cause I sent you a reply on a newsgroup
that you didn't like. Personally, I wouldn't mind a slightly stronger typed
PHP (at least for function arguments) as long as BC and portability were
maintained and it was totally optional.
J
Ilker Cetinkaya wrote:
> thank you for your reply,
>
> i'll change to c# as soon as i've finished my current projects.
>
> regards,
> ilker
>