Suppose I have a tuple
val myTuple: (String,Int,String,...,Boolean) = ("",0,"",..,true)
I can write a type alias
type MyType = (String,Int,String,...,Boolean)
val myTuple: MyType = ("",0,"",..,true)
Can I write this type alias dynamically? Is there a way to not be explicit in this type aliasing and let the compiler find the type itself to associate to the alias?
For exemple something like
case class MyCaseClass(x: String,y: Int,z:String,...,zz:Boolean)
type MyDynamicTupleType = MyCaseClass.tupled.parameter1.type
Not sure this is possible or if this is very useful, just find out that with very long tuples writing aliases is very boring and is just boilerplate (exemple here).
Open for macro-based or shapeless solutions