rfc:boxingandunboxing
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:boxingandunboxing [2009/07/06 16:18] – created schmalls | rfc:boxingandunboxing [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 17: | Line 17: | ||
The most obvious use for boxing is function and method type hints. The object type hints could be used to do implicit boxing of variables. Either a new magic method (''< | The most obvious use for boxing is function and method type hints. The object type hints could be used to do implicit boxing of variables. Either a new magic method (''< | ||
- | It would be best for PHP to include as many object versions of scalar types as possible. The boxing functionality could be added to the SPL Types (([[http://.php.net/ | + | It would be best for PHP to include as many object versions of scalar types as possible. The boxing functionality could be added to the SPL Types (([[http:// |
It could also be possible to try to perform implicit conversions from one object type to another, but the overhead of this feature may be too much. Consider it as an option only. | It could also be possible to try to perform implicit conversions from one object type to another, but the overhead of this feature may be too much. Consider it as an option only. |
rfc/boxingandunboxing.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1