Skip to content

Returning Set for Reactor.errors does not allow getting errors in order and is bad for practical reporting #6

Description

@mcfriend99

Hi,

Thanks for the wonderful library. However, I noticed that the Reactor.errors() method return a Set<SemanticError>. This is bad for practical use as the java Set does not make any guarantee for order in sets. Using a List object might be a better idea because for practical usage, it's really bad when a compiler chunks out errors in an unpredictable order.

Take the Java semantic analyzer for example, it prints semantic errors in order. This will be difficult to achieve using Set<SemanticError>.

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