Skip to content

What's the purpose of the set of unexpected items? #227

Description

@UnkindPartition

I understand how multiple possible tokens could be expected, but I struggle to understand what a set of unexpected tokens means.

In my own code, this set is always empty or singleton. If this covers all the cases, then perhaps it should be Maybe instead of Set?

Or, if the intention is that the multiple consecutive tokens are unexpected, shouldn't it be a list?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions