Open jinrudals opened 2 years ago
Yeah, analogous to how tuple
has get
/set
/edit
methods, I have considered adding automatic helper methods along the lines of getAC: A => Option (some: SomeType)
. I just haven't decided on what form these should take. Furthermore, I remain hopeful that we can get field accessor methods like obj.field
to work in the future, and I'd like these to line up nicely, whenever that happens.
Do you mean tuple instance's filed ?
Or do you mean field of each data type?
For instance C.some
Given the following case,
to filter mylist with type C B only, we do as following
This is totally fine when data A has few types.
However, time to time we may add new case of data A, and every time we need to define new
isD
,isE
.How about adding new API to check type of data instead?