djbpitt / scala-graphing-sandbox

2 stars 0 forks source link

Implicits? #6

Open djbpitt opened 1 year ago

djbpitt commented 1 year ago

Our attempt to use an an Implicit led to our specifying it at all levels up the chain. This seems to work, but is it correct?

rhdekker commented 1 year ago

The implicit parameter should not be given when calling the function. That saves some code. Another suggestion is to place the implicit value on a companion object. Open question would be how to initialise that implicit value on the companion object.