gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
878 stars 359 forks source link

[examples] Improve AVL interface to take in any type of ID #2505

Open leohhhn opened 2 months ago

leohhhn commented 2 months ago

Description

In order to make the p/demo/avl library better, we should allow it to take in any type as a key, while currently it only allows for a string as key.

cc @deelawn

Er-Sadiq commented 2 months ago

Hi, i am work on issue #2505 will be raising a pr soon

thehowl commented 2 months ago

What's your usecase @leohhhn ?

thehowl commented 2 months ago

Would it make sense to do this after we have generics? Or avoid this in favour #1374?

I've posted my full thoughts here