bigslice icon indicating copy to clipboard operation
bigslice copied to clipboard

Use static typechecking with generics over runtime type checking in Slice interface

Open YeungOnion opened this issue 2 years ago • 0 comments

In the docs, I saw that Slice mentions how Go doesn't have generics and therefore relies on dynamic typechecking. Well now we have them!

Could potentially solve #115 by failing compilation - the earliest failure.

Would it be worth the squeeze to replace the dynamic typechecking with static via generics?

If it seems worth a short for a good first issue, I'd work on this.

YeungOnion avatar Nov 13 '23 19:11 YeungOnion