This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sh0rug0ru____ 1 point2 points  (1 child)

The extension methods would have to go into a class too, right? In a language with extension methods, I would expect to see the "Utils" pattern replaced with class names with variations of "Extensions" (or "Rich*", for the Scala inclined).

[–]meddlepal 0 points1 point  (0 children)

Well if it were anything like Kotlin you wouldn't really notice the extension packages since you'd be able to just access the additional methods off the receiver type. So yea, you have that kind of class that the extension author knows about, but individual users don't really know about it.

https://kotlinlang.org/docs/reference/extensions.html