How can I chain implicits in Scala?
问题 The pimp-my-library pattern allows me to seemingly add a method to a class by making available an implicit conversion from that class to one that implements the method. Scala does not allow two such implicit conversions taking place, however, so I cannot got from A to C using an implicit A to B and another implicit B to C . Is there a way around this restriction? 回答1: Scala has a restriction on automatic conversions to add a method, which is that it won't apply more than one conversion in