Bob Nystrom

Results 86 issues of Bob Nystrom

### Page URL https://dart.dev/guides/language/language-tour#adding-features-to-a-class-mixins ### Describe the problem The language tour says: > Sometimes you might want to restrict the types that can use a mixin. For example, the mixin...

enhancement
LanguageTour
p2-medium
examples
e1-hours

The current optional semicolon proposal is good as baseline for how non-breaking it's possible to be. Since it's very conservative and only makes newlines significant where they *need* to be,...

When refactoring dart_style to try out some pattern syntax, I ran into this example: ```dart switch (expression) { case NamedExpression(:var expression) when _isBlockFunction(expression): return true; case MethodInvocation(:var target, argumentList: [var...

patterns

The patterns proposal restricts the grammar slightly for what patterns can appear as the outermost pattern in a variable declaration and pattern assignment: > ``` > outerPattern ::= parenthesizedPattern >...

patterns

The patterns proposal has a TODO to allow `...` in list and map patterns. Currently, both patterns only match if the object has exactly the same length as the number...

patterns

The exhaustiveness proposal is currently pretty hand-wavey around maps. It hints that we could treat key accesses similar to other fields but that mapping doesn't directly work. This is not...

patterns

The [patterns proposal](https://github.com/dart-lang/language/blob/master/working/0546-patterns/patterns-feature-specification.md) has ["extractor patterns"](https://github.com/dart-lang/language/blob/master/working/0546-patterns/patterns-feature-specification.md#extractor-matcher) that look like: ```dart Foo(a, b, c) ``` In other words, like a function or constructor call, except the arguments are subpatterns instead of...

feature
patterns-later

Consider: ```dart // c.dart import augment 'c_aug.dart'; class C { C(); } // c_aug.dart library augment 'c.dart'; augment class C { augment C() = D; // TODO: What about redirecting...

augmentation-libraries

@nshahan was looking into a DDC failure of an ancient and fairly obscure test of for statement behavior. The test passes on the VM and dart2js but fails in DDC...

specification

The omit_local_variable_types lint is great. It looks like currently it doesn't apply to variables declared inside patterns, though. I think it should. This would be both for pattern variable declarations...

type-enhancement
P3
P2
new-language-feature
false-negative