Skip to content

PartialOrd + Ord for HeaderSlice, HeaderWithLength and ThinArc#60

Merged
Manishearth merged 2 commits intoManishearth:masterfrom
daddinuz:master
May 22, 2023
Merged

PartialOrd + Ord for HeaderSlice, HeaderWithLength and ThinArc#60
Manishearth merged 2 commits intoManishearth:masterfrom
daddinuz:master

Conversation

@daddinuz
Copy link
Copy Markdown
Contributor

No description provided.

@daddinuz
Copy link
Copy Markdown
Contributor Author

Actually, this is more complicated than I initially thought.

While writing a similar PR here, I realized that PartialOrd/Ord for HeaderSliceWithLength can lead to unclear semantic.

The semantic of PartialOrd/Ord I expect for HeaderSliceWithLength is the same as header-slice tuple (H, T) (totally questionable).

I'll provide an implementation with this semantic, but this could be a breaking change and requires better reasoning before being approved.

Copy link
Copy Markdown
Owner

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think this is fine

@Manishearth Manishearth merged commit 686a9ea into Manishearth:master May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants