News for hackers. Stuff that matters.
Re:Statically-typed error handling in Python using Mypy by CamouflagedKiwi on Monday December 09, 2019 @02:32AM (#21740983)
That special case isn't specifically for strings - you can also compare arrays, channels and structs that way (as long as the array/struct doesn't contain anything non-comparable). Unfortunately it's a rarer footgun though since it can panic when comparing interfaces :(

There are no comments on this comment yet.