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

Extension Methods #34257

Closed
agrapine opened this issue Aug 25, 2018 · 2 comments
Closed

Extension Methods #34257

agrapine opened this issue Aug 25, 2018 · 2 comments

Comments

@agrapine
Copy link

I've been programming in Dart for the last 6 months, coming from C#, and loving it...
But one thing I can't really let go. And it is such a handy tool to keep the code cleaner.

Extension Methods

so we can have some of the stuff we want without changing the underlying code

now
int index=0; [].map((value)=> {...; index++})

after
[].map((value, index)=> ...)

or immutable sort with iterator, using a comparable
[].orderBy(x=> x.field)

...

NB: I know this has been opened before, and there are quite some serious ramifications but I think the end result is worth while

@zoechi
Copy link
Contributor

zoechi commented Aug 25, 2018

Dup of #9991 (#32280)

@agrapine
Copy link
Author

worth it 👍

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

3 participants