Re:Brython – A Python 3 implementation for client-side web p...
by gilnaa on Monday July 06, 2020 @10:35AM
(#23748310)
I was quite surprised to read that you can't set a custom hasher in C++/Rust, and I even went and made sure that it's possible.
But then I re-read your comment and realized you've meant that you can't do this in JS.
Re:Brython – A Python 3 implementation for client-side web p...
by temporarysdwvit on Monday July 06, 2020 @11:06AM
(#23748703)
Oh you can, just implement toString and js will use it for hashing
Re:Brython – A Python 3 implementation for client-side web p...
by IshKebab on Tuesday July 07, 2020 @08:31AM
(#23758486)
No it won't.
It's definitely better than raw objects because it doesn't mix up data and methods, but it's not much better.