Re: RE: Optional scalar type hinting
| From: | Markus Fischer | Date: | Thu, 03 Jan 2008 19:00:51 +0000 |
| Subject: | Re: RE: Optional scalar type hinting | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34335@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Stanislav Malyshev wrote:
>> When the type hint says I want an integer, then only integer should be
>> accepted; no casting should be done. It may give predictable results
>
> Why people that want Java just don't use Java I wonder? PHP never was a
> strict static typed language.
I can't answer you that one :) I want PHP and not Java. Yet I would like
to have type hinting. Don't see a conflict here.
But with the current situation it feels very awkward. We get class and
array type hints but not the other scalar types?! :-/
- - Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHfTDj1nS0RcInK9ARAqL3AJsFeFxW/m+xonir+ukKEtOHU/m/WQCfetSx
wvy6jLFuSclijBClsADGG+8=
=8Lwh
-----END PGP SIGNATURE-----