Alexey Yakovlev
08/06/2024, 9:10 AMYoussef Shoaib [MOD]
08/06/2024, 9:13 AMAlexey Yakovlev
08/06/2024, 9:30 AMAlexey Yakovlev
08/06/2024, 9:34 AMsealed class
is somewhat more flexible then Rust enum
, so there is some questionable things in API, for example I have to have both enum with variant Type::ClassLike
and structure ClassLikeType
because you can’t have a function that accepts instance of specific enum variant.Alexey Yakovlev
08/06/2024, 9:39 AMfn_generic_type_factory!(map, kotlin.collections, Map<key, value>);
fn_generic_type_factory!(list, kotlin.collections, List<value>);
fn_generic_type_factory!(set, kotlin.collections, Set<value>);
fn_generic_type_factory!(array, kotlin, Array<value>);
Stefan Oltmann
08/06/2024, 7:27 PM