A sub trait of the ShowDecT sub class where the type parameter of ShowT extends Show. This allows the ShowT type class to delegate to the Show class for the implementation of its strT and ShowT methods. It is better to use ShowDec and ShowElemT for types you control than have the toString method delegate to the ShowDecT type class instance in the companion object. Potentially that can create initialisation order problems, but at the very least it can increase compile times.
- Companion:
- object
Value members
Concrete methods
Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.
Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.
- Definition Classes
Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.
Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.
- Definition Classes
Inherited methods
The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.
The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.
- Inherited from:
- TypeStr