Lasse R.H. Nielsen

Results 95 issues of Lasse R.H. Nielsen

A primary constructor declares "parameters" that implicitly define both constructor parameters and fields (instance variables). We allow metadata on both constructor parameters and fields. If someone wants to apply metadata...

data-classes

(See https://github.com/dart-lang/language/issues/1290 for the similar questions for records.) Should there be a `Struct` type which all `struct` declarations implicitly implement, and which no non-`struct` type can implement? It allows *recognizing*...

data-classes

The proposal for tuples have a `Record` class which acts as a common supertype of tuple types. Whether that is necessary or desirable depends on perspective and features. The main...

question
patterns

For historical reasons, named optional parameters can specify their default value using either `:` or `=`. The `=` was introduced later because it's better. It's probably about time to remove...

feature

I know this is a long shot. Dart allows expressions like `int` and `List` to evaluate to `Type` instances representing those types. That's very convenient when you want to have...

feature

# Dart Record Await The current definition of `await e` in Dart checks the value of `e` is a `Future` where `T` is **flatten**(*S*), and *S* is the static type...

feature
patterns

Some objects are more object than other. There are classes where we do fiddle with identity, and we don't allow you to use those with features that depend on identity...

feature
data-classes

We introduced the `part of "librarypath.dart";` part-of syntax because it allows tools to go from a part file to the containing library file without needing to guess the context of...

feature

I often see people trying to check the type of a type variable by doing `if (T is int) ...`. This doesn't work, the expression `T` evaluates to a `Type`...

feature

Solution to #1. To make long number literals more readable, allow authors to inject [digit group separators](https://en.wikipedia.org/wiki/Decimal_separator#Digit_grouping) inside numbers. Examples with different possible separators: ```text 100 000 000 000 000...

feature
state-backlog
small-feature