Skip to content

Use parser.Optional() instead of ZeroOrOne(parser)? #196

@sebastienros

Description

@sebastienros

This is what ChatGPT is using when it has no knowledge. And it might be more readable since there are less parentheses to track.

ZeroOrOne(a.And(b)) vs a.And(b).Optional()

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