Scala Default parameter value derived from previous parameters

Viewed 150

Is there any way to do something like this

class Foo (val bar:Any, val baz:Any = magic(bar))

without overloading constructor or making baz mutable?

1 Answers
Related