-
Notifications
You must be signed in to change notification settings - Fork 32
Deprecate extension methods returning Point
#164
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
Deprecate extension methods returning Point
#164
Conversation
Ooo....record could be nice. |
@srujzs @devoncarew – thoughts here? |
Why don't we like |
I am curious why we want to discourage |
A Beyond those potential sources of confusion, I guess it being generic can introduce performance issues (dart-lang/sdk#53912).
I believe there's been a variety of other discussions around this over the years, but since Edit: Formalized this into an SDK issue: dart-lang/sdk#54852 |
Thanks for the reasoning! I'm okay with avoiding new uses for now. We can always re-add (or users can in their own libraries) if we think this is safe. |
Or do we just move to the Might be good to do now! |
Either way works. I presume there's very low usage of this, and since we're releasing a breaking change version, might as well remove it instead of deprecating. |
@srujzs – or just replace the return type! |
I'd really suggest we deprecate or remove these for this release. Then revisit extensions returning records in the future. For example It's much easier to add extensions back :) |
Point
really shouldn't exist in its current form so we shouldn't encourage or enable its use.If anyone still thinks these extensions are helpful, maybe we could return a record instead.