Skip to content

Range Types #7952

Open
Feature
@hunger

Description

@hunger

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

No one assigned

    Labels

    a:language-slintCompiler for the .slint language (mO,bF)rfcRequest for comments: proposals for changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions