Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .cast() methods #11

Closed
thosakwe opened this issue Sep 1, 2019 · 1 comment
Closed

Add .cast() methods #11

thosakwe opened this issue Sep 1, 2019 · 1 comment

Comments

@thosakwe
Copy link

thosakwe commented Sep 1, 2019

Would love to send in a quick PR for this.

Pseudo-code example:

Tuple3 doSomething() native "_doSomething";

void main() {
  var tuple = doSomething.cast<X, Y, Z>(); // Tuple<X, Y, Z>
  // Do something else...
}

class Tuple3 {
  Tuple3<T, U, V> cast<T, U, V>() {
    return Tuple3(item1 as T, item2 as U, item3 as V);
  }
}
@devoncarew
Copy link
Collaborator

Thanks fort the issue! However, with the recent release of Dart 3.0 and its support for Records, we plan to move this package into maintenance mode. That would essentially mean not take any enhancements to it and just maintaining it from the POV of bug fixes / CI updates to keep it working.

Some more detail in the related issue: #47.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants