I'm happy to introduce Artima SuperSafe, a Scala compiler plugin that brings compile-time safety to equality comparison with ==, !=, as well
as safe containership checks on Seqs via contains, indexOf,
lastIndexOf, indexOfSlice, and lastIndexOfSlice.
That's right, actual compiler errors for those easy to write equality
bugs that previously we've all had to find in testing. You can try it
for yourself here:
Although over the years we have poured an enormous amount of time into
writing open source Scala code (namely ScalaTest an Scalactic), and we
still love doing that, this is a commercial product. It is free to try
for thirty days, and I invite you to download it and try it out. If
you end up deciding to license it, then you'll be helping support our
open source work while also keeping those bugs out of your code. If
you don't, well then at least you enjoyed extra compile time safety
for a month.
So please give it a try and let us know how it goes. Here's that URL again: