3 ms·
Why not just use 'String()' or '2020-01-01'?
by sureIy 2y ago
Why not just use 'String()' or '2020-01-01'?
- justingrantjg 2y agoTemporal includes `equals` methods on every type. String comparison sometimes works, but there are enough cases where it doesn't (especially when comparing strings that refer to the same data but were generated by different libraries so formatting is different for things like trailing zeroes of decimals, time zone aliases, etc.) that it's usually best to use a library function for comparison instead of just using string comparison.
- 8n4vidtmkvmk 2y agoComparison functions are unlikely to work across libraries too?