-
Notifications
You must be signed in to change notification settings - Fork 205
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
Dart lang improvements #582
Comments
Please follow #314 and #125, and maybe #546
We do have I'm not sure if we have tracking for a request to make this language level - @leafpetersen do you know of any? |
We don't seem to have one. |
IIUC this is runtime reflection and not something we plan to add.
I'm guessing this is a request for LINQ? I think we'd probably want a more detail description of the use case for something this big. This issue does not seem actionable outside of the linked duplicates. I'll close for now. |
@natebosch The "more declarative generic (where clause in C#)" seems to be referring to the generic type constraint feature. We already support some of this, like public class MyGenericClass<T> where T : IComparable<T>, new()
{
// The following line is not possible without new() constraint:
T item = new T();
} There is already an issue for this, although closed: dart-lang/sdk#30074. |
Thanks for the clarification! There is also some discussion about being able to use some static interface from a generic type variable at #356 |
@pouloghost commented on Tue Sep 17 2019
I'm new to flutter/dart from android. Dart seems to be more java than kotlin, which makes dart quite outdated. Some great kotlin language features are missing, and will you consider adding them into new versions of dart?
The text was updated successfully, but these errors were encountered: