ostrat.ShowTell
See theShowTell companion object
A sub trait of the Show sub class where the type parameter extends Tell. This allows this Show type class to delegate to the Tell object for the implementation of its strT and Show methods. It is better to use Tell and ShowTell for types you control rather than have the toString method delegate to the Show type class instance in the companion object. Potentially that can create initialisation order problems, but at the very least it can increase compile times. The typeStr is the only data that a Show instance requires, that can't be implemented through delegation to the Tell object.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
trait ShowTellDbl2[R]class ShowTellDbl2Imp[R]trait ShowTellElemDbl2[R]class ShowTellDbl2Imp[R]class ShowTellInt2[R]class ShowTellInt4[R]trait ShowTellN[A]class ShowTellSimple[R]
Members list
In this article