-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove comment-based syntax for generic methods #28796
Comments
We should also remove uses in our own code before removing support from analyzer. |
Yes! I didn't intend that to be an ordered list, but I can see how it looks like it. Re-ordered. :) |
No, I didn't file a tracking issue, and Florian hasn't either. I can when we get closer to working on it.
Yes, but @floitschG knows better than I do. I believe the issue is that the existing API is basically un-statically-typeable. It claims to be of a type that either it isn't, or that can't be expressed. I don't recall the details. Changing it to something that makes sense in strong mode would be a breaking change, so instead, it uses |
At least the "Add a deprecation notice when the old syntax is detected" part should be 1.23. |
Is this actually happening for 1.23? I don't think there are open tasks for, say, the analyzer for 1.23. |
@floitschG how close are we to eliminating this from the core libraries? @srawlins Is internal code in a good state with respect to this yet? @kevmoo Do we have a plan for external packages? |
@leafpetersen I'd LOVE if we had a milestone w/ a hint/lint that told folks if they have these anywhere and help folks migrate. @bwilkerson @pq – possible? |
Will be removed when we don't support dart 1.x semantics anymore. Edit: |
It's quite possible to have a hint warning people that this functionality is about to go away, but I'm not sure whether that's the right UX. While it would be nice to be told that these issues exist and to provide help finding all of the places that need to be fixed, having several hundred to thousands of hints in the Dart Analysis view would be annoying. @jwren @devoncarew Any ideas for a better UX? Maybe we could filter them by default (and explain how to see the rest). |
Better UX: have a tool that auto-converts things.
Even having it as a lint (opt-in) would be great for folks that want to
make sure they've migrated everything.
Otherwise we can just run grep – but that's a less-than-ideal solution for
our external users
…On Thu, Jun 15, 2017 at 9:10 PM, Brian Wilkerson ***@***.***> wrote:
It's quite possible to have a hint warning people that this functionality
is about to go away, but I'm not sure whether that's the right UX. While it
would be nice to be told that these issues exist and to provide help
finding all of the places that need to be fixed, having several hundred to
thousands of hints in the Dart Analysis view would be annoying.
@jwren <https://github.com/jwren> @devoncarew
<https://github.com/devoncarew> Any ideas for a better UX? Maybe we could
filter them by default (and explain how to see the rest).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28796 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABCivM1R8TlA1O1-V5VTBL81rPWY6g5ks5sEYGrgaJpZM4MDiiG>
.
|
@leafpetersen internal code has many examples of using the example syntax, but it should be easy to clean. I only see a few instances of using |
A hint makes sense - something like a warn on deprecated language features hint. |
The comment-based generics syntax will be removed from the Dart SDK tools (like DDC, analyzer) "soon." dart-lang/sdk#28796 PiperOrigin-RevId: 163351864
The comment-based generics syntax will be removed from the Dart SDK tools (like DDC, analyzer) "soon." dart-lang/sdk#28796 PiperOrigin-RevId: 163351864
This is blocked by #28773 (which I think is essentially the 2nd checkmark in this issue's description). |
When I patched https://dart-review.googlesource.com/c/sdk/+/8705, I saw some significant regressions on dart2js and dart2js html benchmarks. |
Done? |
Think so! |
We currently support and in some places still use the transitional
/*<T>*/
syntax for generic methods. Now that real syntax is supported, we should phase out and then eliminate the old syntax.I can file tracking bugs for the sub-issues if people want, but, for now, here's the known subtasks:
Currently, there are a few places where we still deliberately use the old syntax:
as Object /*=ConcreteClass*/
for performance reasons because implementations do not currently take advantage of strong mode.We'll want to ensure those are addressed first before the syntax is removed.
The text was updated successfully, but these errors were encountered: