Details
-
Technical task
-
Resolution: Unresolved
-
P2: Important
-
None
Description
In order to increase usability of API, Qt needs to use ranges.
What is "ranges"?
This is a modern way to deal with collections of elements that allows making operations composable and perform lazy evaluation.
Why?
- Modern
- Lazy
- Clean code
- Clean interfaces
- Functional
- Composable
Proof of concept?
Using ranges (+optionally coroutines) for traversing QObject tree: https://git.qt.io/vifanask/qobject-with-ranges
When?
C++20 so far.
Anything to play with?
https://github.com/ericniebler/range-v3 (Fully compatible with C++17; boost license)
Note: subtasks will be added if we decide to proceed with this research.
Attachments
Issue Links
- relates to
-
QTBUG-80307 Add ranges overloads for Qt API
- Closed