Hacker News new | ask | show | jobs
by frowaway001 4569 days ago
What's wrong with implicits?
1 comments

Magic.
... done right?

I mean the most hated implicits are implicit conversions and they basically exist for Java compatibility.¹

So on the one side you have terrible stuff hard-coded into the language (Java, C#) which you will never get rid of and on the other side you have a solution as a library which you just can de-import if you don't want to suffer from e. g. magic anything-to-String conversions any longer (I certainly won't).

That's a huge plus in my book.

¹ The two other main use cases, type classes and extension methods, seem to be hugely popular and I haven't seen any criticism concerning them.