Skip to content

Plan for Tuples/Arity's? #76

Closed
Closed
@Jolanrensen

Description

@Jolanrensen

This is more of a future proofing question than an actual issue, but I was wondering if there was any plan regarding the use of Tuples in the library.
On the one hand, many of Sparks functions return Scala Tuples, which work fine although could use with some operator funs for destructuring and operator overloads.
On the other hand, the library provides the Arity's (odd name but sure) data classes which have the operator plus funs but there is no conversion between those and the Scala Tuples (yet, but I could create a pull request easily).
And finally there are the Kotlin Pairs and Tuples...

So what's the future plan? Personally I'd be fine with providing operator funs for the Scala Tuples and make them a bit more Kotlin friendly (I've got componentX operator funs ready to pull request if needed) and losing the Arity's. (Maybe make the c() functions create Scala Tuples too)
But currently, as user of the library, I'm constantly trying to figure out which method to use for Tuples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions