4 ms·
I agree about id() but `is` is absolutely used (and needed) in normal code. But generally not on strings or integers, which are the types that have weird result
by Liquid_Fire 4y ago
I agree about id() but `is` is absolutely used (and needed) in normal code. But generally not on strings or integers, which are the types that have weird results with it.
Simple example: any sort of graph algorithm that needs to know if two nodes are the same node.
- cuteboy19 4y agoYou should really use a nodeid in that case and compare nodeids. So that you can serialize your graph