In the Scala standard library there is a class Proxy[T]
. From the API:
This class implements a simple proxy that forwards all calls to the public, non-final methods defined in class Any to another object self.
From the above, and numerous Q&A in stack overflow regarding this class, I would infer that this is the same as using an implicit class
.
Is this correct? If so, what are the advantages/disadvantages of using the Proxy
class over the implicit
keyword?