Who here has actually used === on their code? Why ...
# announcements
h
Who here has actually used === on their code? Why did you use it? I personally have never needed to
n
===
is comparing reference quality right? never found a use or need
r
Using it when comparing object of sealed classes
h
Hmm that's actually a good use case
r
lot of times I use a
when
though
h
Yah. I mostly just use when as well
e
Also, objects are as well comparable via
is
d
in the tests?
h
Haha I don't write tests
😂 1
k
When you're dealing with mutable data structures
===
is sometimes necessary to make sure you don't accidentally share an instance.