Skip to content

feat: support Comparable and cmp.Ordered as type-parameter bounds#197

Merged
ivov merged 1 commit into
mainfrom
support-comparable-and-ordered-bounds
Apr 26, 2026
Merged

feat: support Comparable and cmp.Ordered as type-parameter bounds#197
ivov merged 1 commit into
mainfrom
support-comparable-and-ordered-bounds

Conversation

@ivov
Copy link
Copy Markdown
Owner

@ivov ivov commented Apr 26, 2026

Adds support for Go's Comparable and cmp.Ordered as type param bounds in Lisette.

This unlocks ~50 stdlib functions that were previously skipped during bindgen, including slices.Sort, slices.Min/Max, cmp.Compare, maps.Keys, unique.Make, hash/maphash.Comparable. User code can declare fn foo<T: Comparable> or fn foo<T: cmp.Ordered> and use == / < on T inside the body.

@ivov ivov merged commit e762d8c into main Apr 26, 2026
5 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Released in lisette-v0.1.21

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.

1 participant