Skip to content

Allow tuples in untagged variants #6544

Closed
@tsnobip

Description

@tsnobip

Using tuples is a nice way to model heterogeneous arrays in rescript, but so far they're not allowed in unboxed/untagged variants, even though they're compiled to regular arrays in js, and arrays are allowed in untagged variants.

It'd be cool to add tuples to the allowed types in untagged variants.

See forum post for a use case.

We'd basically allow tuples and we'd check that only one variant case can be of type array or tuple.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions