rfc:comparator_interface
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:comparator_interface [2016/09/26 22:16] – dasprid | rfc:comparator_interface [2025/04/03 13:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2016-09-26 | * Date: 2016-09-26 | ||
* Author: Ben Scholzen, mail@dasprids.de | * Author: Ben Scholzen, mail@dasprids.de | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
===== 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 ('' |
===== Proposal ===== | ===== Proposal ===== |
rfc/comparator_interface.1474928190.txt.gz · Last modified: 2025/04/03 13:08 (external edit)