rfc:comparator_interface

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
rfc:comparator_interface [2016/09/26 22:06] – created daspridrfc:comparator_interface [2017/09/22 13:28] – external edit 127.0.0.1
Line 7: Line 7:
  
 ===== Introduction ===== ===== Introduction =====
-The internal DateTime and ImmutableDateTime classes have an internal compare_objects() method, which allows them to be directly compared with the usual comparison operators (<, <=, ==, > and >=). This is currently not possible to implement with user defined classes, which this RFC tries to solve.+The internal DateTime and ImmutableDateTime classes have an internal compare_objects() method, which allows them to be directly compared with the usual comparison operators (''<''''<=''''==''''>'' and ''>=''). This is currently not possible to implement with user defined classes, which this RFC tries to solve.
  
 ===== Proposal ===== ===== Proposal =====
Line 25: Line 25:
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
-A pull request with a working implementation, targeting master, is here: https://github.com/php/php-src/pull/1795+A pull request with an interface, targeting master, is here: https://github.com/php/php-src/pull/2143
  
-==== Vote ====+===== Vote =====
 As this is a language change, a 2/3 majority is required. A straight Yes/No vote is being held. As this is a language change, a 2/3 majority is required. A straight Yes/No vote is being held.
  
 ===== Rejected Features ===== ===== Rejected Features =====
 Keep this updated with features that were discussed on the mail lists. Keep this updated with features that were discussed on the mail lists.
rfc/comparator_interface.txt · Last modified: 2021/03/27 14:55 by ilutov