Skip to content

Inclusivity vs Exclusivity #15

@atticoos

Description

@atticoos

Should the syntax be inclusive of the upper bound of the range, or exclusive?

With the collection

a = [1, 2, 3, 4]

And the expression

a[1..3]

Shall it produce a range inclusive of the value at position 3, or exclusive?

// inclusive
[2, 3, 4]
// exclusive
[2, 3]

This issue provides a formal place for discussion and reference point for the underlying behavior of the syntax's inclusive or exclusive behavior

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