James D. Lin
James D. Lin
Seems like a duplicate of https://github.com/dart-lang/linter/issues/2066?
> Well that was created later than this Huh? This issue seems to have been created in March 2021 (unless transferring the issue modified the timestamp?). #2066 was filed last...
Another workaround for libraries that don't have any `import`s would be to add a seemingly unnecessary `import 'dart:core';` line. Regarding a bare `library;` statement: could it be even more implicit?...
> I think the implicit behavior would not as easy to learn as a line with `library;`. I think having the metadata and comments on an explicit declaration will make...
> It looks like only upper/lower case letters and digits are allowed. Where is this done? [There's an `_invalidChars` check](https://github.com/dart-lang/args/blob/73e8d3b55cbedc9765f8e266f3422d8914f8e62a/lib/src/option.dart#L158), but that seems to check only for whitespace, quotation characters,...
As noted in https://stackoverflow.com/a/67903080/, the Dart team maintains [its own ANTLR grammar](https://github.com/dart-lang/sdk/blob/master/tools/spec_parser/Dart.g), and the the one in the ANTLR repository is very outdated.
I'll also add that a lot of Dart documentation (e.g. [the "Libraries and visibility" section of the Language Tour](https://dart.dev/guides/language/language-tour#libraries-and-visibility) talks about "libraries" and mentions that identifiers with a leading `_`...
Lambda and closure also are more common terms, should be known to people with computer science backgrounds, and can be looked up on Wikipedia ([lambda (programming)](https://en.wikipedia.org/wiki/Lambda_(programming)), [closure (computer programming)](https://en.wikipedia.org/wiki/Closure_(computer_programming))). In...
I don't seem to see this specific kind of problem mentioned on that page. I think the case of `Generic` being substitutable for `Generic` is worth mentioning explicitly since, unlike...
Is this still a problem? I find it hard to believe that it is. If so, can anyone provide minimal, complete code that can reproduce the problem? A runtime error...