Skip to content

Add go generics - #6

Open
quamejnr wants to merge 4 commits into
amwolff:masterfrom
quamejnr:impr/add-generics
Open

Add go generics#6
quamejnr wants to merge 4 commits into
amwolff:masterfrom
quamejnr:impr/add-generics

Conversation

@quamejnr

Copy link
Copy Markdown
Contributor

Description

This MR adds go generics to the code to add a layer of type safety. Maps can now constrain their keys to receiving only comparable values avoiding errors

quamejnr added 4 commits July 25, 2024 22:25
## Description
This MR adds benchmarks to this package using golang's benchmarking
tool, making it easier to compare and contrast the differences in speed.
This replaces the benchmarks in measurements.go as it provides a cleaner
output.
## Description
This MR makes use of go generics which provides a level of error
checking since we can now put constraints on our interfaces. Example, we
can limit our map keys to comparable values.
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