benbjohnson / benbjohnson/immutable

Feature Request: Make datastructures as Interface

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
745
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Currently, the data structures themself (Map, List) are designed as structs.
Do you think in a future major release it would be possible to change them to interfaces. This would open up the door for different implementations of the structures.

This would be very helpful to define different implementations with their own strengths, like a merkle tree implementation for write heavy scenarios, or an implementation which is almost always just used as append only. We work in a embedded environment and if such implementations would exists, we could choose for every location where we use lists, which implementation would give the best performance.

What do you think?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.