Skip to content

Support for number ranges #601

@Ztry8

Description

@Ztry8

What do you think about ranges like std::ops::Range in RON?
For example:

(
  value: 0..5,
  foo: -5..=2,
)

I think it might be just syntactic sugar and a replacement for:

(
  value: (
    start: 0,
    end: 5,
  ),
  foo: (
    start: -5,
    end: 2,
  ),
)

What about floats, it may be difficult and unreadable to parse due to dots:

(
    a: 0.0..0.5,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions