rfc:class-like_primitive_types

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:class-like_primitive_types [2016/12/19 22:07] ajfrfc:class-like_primitive_types [2016/12/19 22:14] ajf
Line 172: Line 172:
  
 It also means we can easily introduce new superclasses of our other primitive types. For example, a new <php>\Number</php> type superclassing <php>int</php> and <php>float</php>, or a new <php>\Scalar</php> type superclassing everything except objects and arrays. It also means we can easily introduce new superclasses of our other primitive types. For example, a new <php>\Number</php> type superclassing <php>int</php> and <php>float</php>, or a new <php>\Scalar</php> type superclassing everything except objects and arrays.
 +
 +<php>instanceof</php> could potentially support pseudo-types like <php>callable</php>.
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
rfc/class-like_primitive_types.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1