Re: [PATCH] Optional scalar type hinting
| From: | Cristian Rodriguez | Date: | Sun, 18 Nov 2007 22:52:30 +0000 |
| Subject: | Re: [PATCH] Optional scalar type hinting | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33265@lists.php.net to get a copy of this message | ||
2007/11/18, Derick Rethans <derick@php.net>:
> I am actually thinking that it might be a good thing to add more and
> more. I know my quick hack isn't the best implementation though.
Yes and it is an alternative and not a mandatory thing to use.. as long as :
<?php
function foo(int $num) {
return $num
}
foo("12345") // emit fatal error, NOT accept it as valid integer
all is fine and Im all for it ;)
--
http://www.kissofjudas.net/