[RFC] Introduce Type Affinity
| From: | Yasuo Ohgaki | Date: | Mon, 16 Mar 2015 22:00:39 +0000 |
| Subject: | [RFC] Introduce Type Affinity | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-85094@lists.php.net to get a copy of this message | ||
Hi all,
I had this idea for a long time, but I didn't have time to mention.
Since I did mention this idea in basic type hints thread, I've
created RFC for it.
https://wiki.php.net/rfc/introduce-type-affinity
SQLite2 was typeless. All data is stored as "text".
Type affinity is SQLite3's idea to have native type for better performance.
https://www.sqlite.org/datatype3.html
PHP may have the same idea for better performance and code.
It works well with coercive type or strict type (Not currently proposed
one, though)
Comments are appreciated!
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net