Am Mon, 16 Feb 2015 18:00:41 +0200
schrieb Arvids Godjuks <arvids.godj...@gmail.com>:

Hallo,

> Right now we need a breakthrough event - get type hints into the language
> at all. The most sensible thing to do it is to add basic type hints that
> work like the current conversion rules, maybe add some notices/warnings for
> some cases. Or adjust the conversion rules themselves in line with the new
> type hints.

Split a scalar typehints RFC in several smaller RFCs, problems, questions, 
discussions?

- Should PHP support scalar type hints?
- What are the advantages of the typehints for objects?
- What are the advantages of strict/weak types?
- Be aware of the type handling of internal functions: 
   - float silently converted to int
      str_repeat ( string $input , int $multiplier )
      echo str_repeat('a', 3.7);
   - ...
- Validation of user submitted data in frameworks is already strict
  type checking
- ...



tschuess
      [|8:)

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

Reply via email to