Easy as { 1 2 3 }? (when { 1 2 3 } ≠ { 1 2 3 })
|
07-17-2018, 08:42 PM
Post: #23
|
|||
|
|||
RE: Easy as { 1 2 3 }?
(07-17-2018 01:41 PM)DavidM Wrote: == also ignores tags, which can be useful at times. But the increased flexibility of == comes with a price: it is noticeably slower. So in cases where performance is an issue, it's better to use SAME if you know that the objects in question are compatible with its strictness. In my experience, the most common issue that comes up for compatibility is exact vs. approximate numbers. The slowness is especially bad with exact integers, not as bad with approximate numbers. All comparison operators are very slow when applied to exact integers. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)