-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alain Williams wrote:
|> Pierre wrote:
|> | That can be a good compromise and may make happy the cons camp.
|> | However, I would not like to have "11an" returns 0 but raises an
|> | error. I can live with "[0-1.]" being converted to integer or float as
|> | it is the case now. Even I would rather prefer a strict hinting and
|> | let the user of  a method or function do the cast (for the reasons
|> | explained numerous times in this thread).
|>
|> Having yet another way of conversion which is different from any
|> existing one in PHP scares me really ...
|
| To accept 'foobar' as integer zero (as with current conversion) would make
| a total nonsense of type hinting.

I think it would make nonsense of "type conversion", yes. And, as I said
before, my vote is for "type hinting", no conversion done. Just consider
the examples from Kore or Mikko (references!). Just using hints wouldn't
oppose any problems with references.

- - Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHgUoM1nS0RcInK9ARAi8aAKC+EDFHjVtDf/bbRx/sNYVLIcfA0ACfRMIa
DbPKRQQKPpIeyBZLZY04JZ8=
=XuFp
-----END PGP SIGNATURE-----

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to