rfc:comparator_interface

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rfc:comparator_interface [2016/09/26 22:16]
dasprid
rfc:comparator_interface [2017/09/22 13:28] (current)
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 =====
rfc/comparator_interface.txt · Last modified: 2017/09/22 13:28 (external edit)