Lasse R.H. Nielsen

Results 152 issues of Lasse R.H. Nielsen

Dart has library declarations of the form `library some.name;` which are no longer commonly used. The name used to be required for having `part` files, but is now not necessary....

request
small-feature

The current Dart parameters can be named or positional, [required or optional, and typed as nullable or non-nullable, and an optional parameter can have a default value or not. Some...

feature

The [**flatten** function](https://github.com/dart-lang/language/blob/master/accepted/2.12/nnbd/feature-specification.md#future-flattening) determines/reflects the behavior of `await` on an expression based on the expression's static type. The function is not completely defined since it relies on static type, but...

bug

Static functions are compile time constants, but function literals are not. It would be great if it was possible to write compile time constant function literals. They would necessarily have...

feature
enhanced-const

The current "ternary" conditional expression syntax, `e1 ? e2 : e3`, uses the `?` character which also have several other uses in the Dart syntax (null-aware member access, nullable spread...

feature

We have a lint, [avoid_multiple_declarations_per_line](https://dart-lang.github.io/linter/lints/avoid_multiple_declarations_per_line.html) which warns about ```dart var x = something, y = other; ``` declarations which declare more than one variable. (It's a lint, and AFAICS not...

patterns

The current proposal for tuples introduces a `field1` getter for a positional entry and a `name` getter for a named entry named `name`. It's made a compile-time error to have...

question
patterns

The [library_names](https://dart-lang.github.io/linter/lints/library_names.html) documentation is somewhat confusing. It says to use `snake_case` names, which is fine. It makes no mention of `.` separators, so it's not clear which *part* of a...

type-documentation
set-recommended

The description of the `prefer_interpolation_to_compose_strings` lint is that: > **PREFER** using interpolation to compose strings and values. > > Using interpolation when composing strings and values is usually easier to...

type-documentation
set-flutter

The [unnecessary_overrides](https://dart-lang.github.io/linter/lints/unnecessary_overrides.html) lint lists one of the exceptions as > * if documentation comments are present on the member, In that case, the *body* of the override is still unnecessary....

type-bug
type-documentation
false negative
set-core