-
Notifications
You must be signed in to change notification settings - Fork 785
Open
Labels
a:language-slintCompiler for the .slint language (mO,bF)Compiler for the .slint language (mO,bF)rfcRequest for comments: proposals for changesRequest for comments: proposals for changes
Description
Feature Description
I have been wondering whether we could have Ranges as types in Slint.
A range would be a integer or float value between an upper and a lower bound. I have been running into variables that have some valid range (e.g. a speedometer might go from 0 to 280 or a minute has between 0-59 seconds).
Exposing this range information in the type system could be very convenient for users and would also help doing UIs in our tooling.
Product Impact
No response
Metadata
Metadata
Assignees
Labels
a:language-slintCompiler for the .slint language (mO,bF)Compiler for the .slint language (mO,bF)rfcRequest for comments: proposals for changesRequest for comments: proposals for changes