rfc:intersection_types

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
rfc:intersection_types [2016/04/28 14:23] – Add missing parameter levimrfc:intersection_types [2016/04/28 14:26] – Add note about missing implementation for mixing unions and intersections levim
Line 47: Line 47:
 </PHP> </PHP>
  
-Note that if [[rfc:union_types|Union Types]] are also accepted then something like this will be possible, allowing for an array or an object that satisfies both Countable and Traversable:+Note that if [[rfc:union_types|Union Types]] are also accepted then something like this will be possible((The experimental patch provided by Joe and Bob currently does not support mixing unions and intersections)), allowing for an array or an object that satisfies both Countable and Traversable:
 <PHP> <PHP>
 function RecordsToList(Array | (Countable & Traversable) $input): String { function RecordsToList(Array | (Countable & Traversable) $input): String {
rfc/intersection_types.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1