DEV Community

Discussion on: Implicit classes in Scala

Collapse
 
sirseanofloxley profile image
Sean Allin Newell

So are Scala implicits like .NET extension methods?

Extension methods enable you to "add" methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. Extension methods are a special kind of static method, but they are called as if they were instance methods on the extended type.

Collapse
 
avalander profile image
Avalander

I know next to nothing about .NET, but after a quick read it seems to be the same principle, yeah.