why does this not run, but `test1.equals(test2)` d...
# getting-started
f
why does this not run, but
test1.equals(test2)
does?
k
Because the
equals
signature must accept anything but that doesn't mean it actually makes sense, so they added an extra useful check for
==
.
There's a similar story around the
contains
operator.
f
ok thanks
how do you know all this stuff
k
I read the reference and hang around in slack simple smile
a
Btw, @svtk's Kotlin for Java Programmers on Coursea is awesome too.
f
thanks I'll take a look at the course