Hi guys i built a small library to help navigate i...
# compose
f
Hi guys i built a small library to help navigate in compose with well typed functions: https://github.com/xmartlabs/TypedNavigation Any feedback is welcome!!
a
Hi! It looks great! Why are "TypedNavigations"
E
,
A3
, ...? what does it mean?
👍 1
f
The idea is that the amount of arguments is ststically typed so
A3
is the navigation with 3 arguments and
E
is the navigation with no arguments
a
Wh not
Empty
?
f
i think that for that we went with the shorter option to keep all names short but i don't think
Empty
is bad either
a
Sorry, i meant...
Empty
,
SingleParam
Etc
f
Ahhh i see in that case we thouth it as an option but when building it i base those types in the dimensions of multik a library to make operations in multidimensional arrays. Similarly to what we do they define the dimension statically by calling it
D1
,
D2
, ...,
DN
. I think that if its not clear enough we can change it to the notation that you mention since it make it easier to read and it explain itself better but that will make longer types since you will have to define
TypedNavigation.ThreeParams
.