-
Notifications
You must be signed in to change notification settings - Fork 701
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
Mixins article is scary and out of date, remove? #946
Comments
That page has that banner because it has yet to be updated as a part of #407. I believe that the article content is still valid as is, given that the only Dart 2 related change mentioned in the spec relative to mixins is the following:
@eernstg, WDYT? I'd vote to keep the article. I can do the work necessary to ensure that the code excerpts are tested, and then remove the banner. |
Things I'd update:
|
Thanks Seth, that is valuable feedback! Any others have an opinion about revising vs. dropping this article? |
First, I do think that the contents of the article is very nearly valid today, but also that there are many little things that have changed. For example:
With the new
Which proposal is that? We have plans for supporting constructors in mixins, but this will not be part of the first version of the Summing up, it seems reasonable to mark the mixins article as "not up to date" in some way (and references to it ought to be given in a context where that wouldn't be a complete surprise), but it also seems reasonable to refer to it for conceptual background information. This makes me think that the safe and easy way out is to keep the article marked and change the "novice oriented" references to point to the language tour (and then we must make sure that the language tour says something which is true, but that would presumably be a shorter text). |
PS: I was also wondering about this: abstract class Collection<E> {
Collection<E> map((f) {
var result = newInstance();
forEach((E e) { result.add(f(e)); });
return result;
});
...
} It looks like a combination of an abstract method declaration and an invocation thereof. |
If that's true, then we should delete this article. The Language Tour will be sufficient for those wishing to use mixins in the meantime. Less to maintain, less to update, less confusing. |
Can't we keep it and mark it as historic? It's background information about mixins by the inventor of mixins.. |
I'm with Erik on this one. I believe that we can address the original concerns while keeping the article, w/o too much effort. I'll put a PR together for all to comment on. |
* Clarify scope and readership of "Mixins in Dart" Fixes #946 * Change title, fix lang. tour reference * Updates based on Kathy's feedback * Prose tweak * Adjustments * Final tweak
From @sethladd on June 20, 2018 8:32
A user just approached me, asking about Mixins. We saw https://www.dartlang.org/articles/language/mixins but there's a scary red banner. And it's written for language spec people and not users. And it's probably not updated. Should we just remove this article? We can redirect over to the Mixins section of Language Tour.
Copied from original issue: dart-lang/site-webdev#1657
The text was updated successfully, but these errors were encountered: