Skip to content

Support record arrays #7

Description

@Meshiest

This is a discussion/feature issue because it adds some weird behavior with operations on the arrays

Recursively resolve arrays of records into structs of arrays:

type Leaf = { value0: int, value1: string }
type Branch = { a: Leaf, b: Leaf }

var tree: Branch[]

tree should resolve into arrays for

  • tree.a.value0
  • tree.a.value1
  • tree.b.value0
  • tree.b.value1

Array operations on tree should apply to all of the resolved arrays in parallel. This risks some weird behavior for array operations that return OutOfBounds like array.get() requiring an Or/And gate for each resolved array...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions