Results 37 issues of Leaf Petersen

The proposal for structs and extension structs [here](https://github.com/dart-lang/language/issues/2360) uses the declaration forms: ```dart struct Foo(int x, int y) { // members here } extension struct Bar(int x) { // members...

views
data-classes
structs

In the extension struct proposal (#2360) I initially propose to disallow extension structs to extend other extension structs. #2368 discusses whether to allow this. If we allow this, the question...

views
data-classes
structs

The extension struct proposal [here](https://github.com/dart-lang/language/issues/2360) ties together structs and extension structs in two ways: it uses overlapping syntax (the `struct` keyword), and it has a goal that the constructs may...

views
data-classes
structs

The current record proposal provides no notation for accessing a single positional field: ``` Positional fields are not exposed as getters. Record patterns in pattern matching can be used to...

patterns

_[Update: There is considerable interest on the team in adding primary constructors as a general feature. This original discussion issue has been repurposed as the tracking issue for the general...

feature
extension-types
inline-classes
data-classes
structs
primary-constructors

[Updated: This was an overly terse summary, which caused some confusion. I've elaborated (hopefully more clearly) [here](https://github.com/dart-lang/language/issues/2378#issuecomment-1206942027)] The current rules for switches require that constants in switches come from classes...

patterns

The records proposal specifies identity [here](https://github.com/dart-lang/language/blob/master/working/0546-patterns/records-feature-specification.md#identity) to be structural. In particular, identity is *required* to return `true` for any two records with the same shape for which the fields are...

patterns

This is a meta-issue to collect up discussion around a proposal I've landed [here](https://github.com/dart-lang/language/blob/master/working/extension_structs/overview.md). This issue is intended to capture broad discussion about the approach. Specific points of discussion around...

extension-types
views
data-classes
structs

The records proposal forbids using private names in a record: ``` A field name that starts with an underscore. If we allow a record to have private field names, then...

patterns

The pattern proposal has the following text: > Null-check, variable, list, map, record, or extractor: Irrefutable if v is assignable to the static type of p. If p is a...

patterns