Marc Knaup
10/08/2018, 2:32 PMclass Something<Context = DefaultContext>
-> val something: Something
Dico
10/08/2018, 3:04 PMclass Something<Required, Extra = Unit>
val a: Something<String, Extra = Int>
class Something<Elem, Coll : Collection<Elem> = List<Elem>>
val a: Something<String, Set<String>>
Marc Knaup
10/08/2018, 3:12 PMkevinmost
10/08/2018, 5:22 PMcedric
10/08/2018, 9:59 PMilya.gorbunov
10/09/2018, 1:21 AMDico
10/09/2018, 11:04 AMMarc Knaup
10/09/2018, 12:05 PMcontext
so that you can pass additional domain-specific data and functionality around in a type-safe way. But if you don't need that then you constantly have to specify something like <SomeEmptyContextIAmNotUsingAnyway>
. So just defaulting that away would be awesome and remove a lot of visual clutter 🙂Marc Knaup
10/09/2018, 12:06 PMthemishkun
10/10/2018, 7:44 PMtypealias SomethingDefault = Something<DefualtContext>
-> val something: SomethingDefault
?Marc Knaup
10/10/2018, 7:48 PMthemishkun
10/10/2018, 7:52 PMDico
10/10/2018, 7:53 PM