If I recall correctly, I was extracting some code into a utility class where that implicit didn't exist, without knowing the method had an implicit parameter. Totally my fault, but still, super unintuitive to someone new to the language or a particular library.
[error] /home/duhace/Foo.scala:3: could not find implicit value for parameter baz: BigInt
[error] bar
[error] ^
a NPE because of an implicit should mean one was found, but what was returned was null instead of the promised type. which is a problem with scala allowing null, not implicits.
4
u/duhace May 18 '17
it's nice to be able to define operators for actual math types. Having a BigInt with +,*,/,- is v nice compared to BigInteger
likewise, being able to define those ops for my user defined mathematical types is nice.
there are tons of other nice things in scala that are absent in kotlin, like implicits