Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Extract extensions properties for nested ADT values in core and data #20

Open
raulraja opened this issue Jan 16, 2018 · 2 comments
Open

Comments

@raulraja
Copy link
Member

Many nested values have their own identifiers:

Some.t
Left.l
Right.r
...

This issue is to track the creation of extension syntax for all those datatypes that bring a unified access to the inner property through property extension.
Ex taken from slack where @hastebrot proposed:

package arrow.syntax.option

inline val <T> Some<T>.value get() = this.t

All these property should live in arrow.syntax.[datatype] for consistency.

@Mishkun
Copy link
Contributor

Mishkun commented Oct 6, 2018

I can work with that. Should I just go through all Data Types and extract value ext property?

@pakoito
Copy link
Member

pakoito commented Oct 7, 2018

I believe we don't need the extension, but yes, it'd be nice to have a consistent value name between Either.(Left, Right), Option.Some, Ior.(Left, Right, Both), Try.Sucess and Id. Any others I forgot would be nice too, as long as the value isn't calculated, like in Eval for example.

@rachelcarmena rachelcarmena transferred this issue from arrow-kt/arrow Feb 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants