Mathieu Tricoire
Mathieu Tricoire
CCConvex Community
Created by Mathieu Tricoire on 6/20/2023 in #general
I wanted to provide some feedback on my
Yes I saw that, I used the ordered-float crate for that if you're interested (can also help to impl Hash for f64 which is not straightforward too) https://crates.io/crates/ordered-float
5 replies
CCConvex Community
Created by Mathieu Tricoire on 6/20/2023 in #general
I wanted to provide some feedback on my
Ok, I was wondering if there was a need for Ord because I thought it was not necessary to have this for Value but it seems I didn't dig enough, thanks for the answer 👍 Yes I could implement Hash but for a HashMap it becomes tricky if I'm correct, because you can't derive Hash for HashMap since automatic derive will not be able to ensure a reproductive way to create the hash because of the unordered nature of HashMap but you can implement it manually to ensure a reproductive way to hash the HashMap but I chose the other path.
5 replies
CCConvex Community
Created by Mathieu Tricoire on 4/5/2023 in #general
swift client
Also don't hesitate to give me feedback on the lib, I started learning Swift last year so any feedback is welcome
4 replies
CCConvex Community
Created by Mathieu Tricoire on 4/5/2023 in #general
swift client
Nice! I will definitely take a look
4 replies