Skip to content

[Needs discussion] Add support for arrays #5

@Kangaroux

Description

@Kangaroux

We should support type checking arrays just like any other value.

I'm not sure what the best way of reporting type mismatches would be. The two things that come to mind would be to report the entire array as a mismatch, or to report each individual index as a mismatch.

Calling out the specific indexes that are mismatched would definitely be a bit too verbose in most cases. I'd also be willing to bet that if one of the indexes is mismatched then chances are the whole array is mismatched.

On the other hand, I'd rather be overly verbose and provide a way to simplify the mismatch reporting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions