When should I make methods with implicit argument in Scala?
问题 I made codes using play framework in scala which look like the following: object Application extends Controller { def hoge = Action( implicit request => val username = MyCookie.getName.get Ok("hello " + username) } } object MyCookie { def getName( implicit request: RequestHeader ) = { request.cookies.get("name").map(_.value) } } I got a code review from my coworker. He said this code is not readable because of implicit parameter. I couldn't reply to his opinion. So could you tell me what is