Skip to content

[memo] Possible TODOs #796

Description

@puzrin

Memo for self: to remember rejected but potentially useful features.

  • "minimal context width"
    • Postponed until the final decision about key styling.
    • Should it define any node geometry of scalars only? Or scalar strings only?
  • Multiline double-quoted and plain scalars support
  • Complex keys styling
    • TBH, nobody uses that :). All use strings and may sometimes be integers. So, currently all complex keys are forced to flow (just because "nobody cares").
    • Need to decide: do we need a more generic API for "styling everything", or stay on scalars (or even scalar strings) only.
  • Comments and empty space (basic support)
    • ~ same way as Go parser.
    • Not sure it's worth diving into CST direction. But possible. Not enough info to decide.
  • Optimize dumper style regexps
    • Probably, regexps for base chars can be expanded. Right now, nobody cares about dumper speed. And improvement is not guaranteed. Full expansion is not worth the effort - code will become absolutely unmaintainable.

Other

  • Recheck presenter data flow
    • Probably the content of the context parameter may be reorganized.
  • Recheck event parser regexes for spec BNF compliance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions