News for hackers. Stuff that matters.
Re:Scala 3.0.0-M1 by vvillena on Wednesday November 04, 2020 @06:17AM (#24988068)
There is a feature in Scala 2 that covers the specific thing you want: implicit classes. You can use them to add custom methods. It's clean and straightforward.

And it will be even easier in Scala 3, where this pattern is coded into an even simpler feature: extensions.

There are no comments on this comment yet.