You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: