Skip to content

Better representation of segments in multi-segment records #402

Open

Description

@cx1111

The current implementation is rather fragile and hard to generalize at times. In particular:

  • The segments attribute is a list of Record or None objects. Perhaps empty records could be represented with an empty-represented Record object instead. One cannot tell the segment length from the None object.
  • For variable-layout records, the layout record is read into the first segment. Maybe there should be a way to abstract away the layout record so that applications do not need to know about fixed vs variable layout records.

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