Lasse R.H. Nielsen
Lasse R.H. Nielsen
Should **flatten** also be defined for `?`/`_` (the unknown type used when there is no context type during type inference)? I think it's not necessary. We only use **flatten** on...
A `switch class` is a requirement to not declare direct subclasses outside of the current module (library/package/whichever granularity is chosen) It's also an implicit promise to not declare further direct...
Dart generally do not try to protect code against other code in the same library. Making something inaccessible or prohibited to the same library is so soft a boundary that...
Using types to differentiate between ambiguous syntactic constructs is *possible*, but comes with a cost of, well, ambiguity. We still need to give a meaning in the case where there...
If we have unary and nullary tuples, we also need to have types for them. The most consistent type syntax would probably be `(int)` and `()`. In a type position,...
I see no problem with overriding and changing behavior based on static type. That's what extension structs do (or views, or extension types, or even normal extension methods). The moment...
I wouldn't start adding `toDebugString()` (which is what I'd name it) unless we can also add it to other objects. If we can add it to `Object`, I'd be delighted,...
@rrousselGit As described, it will support setting a property to `null`. > As with constructors, this method cannot be generated as a strict de-sugaring, since the ability to detect whether...
I definitely do not expect `toJson`/`fromJson` because there is no general way to go from any value to or from JSON, and the fields of a struct can contain any...
An issue with using interfaces for automatically implemented class contracts that forces restrictions on the class, is that interfaces are inherited, and so are implementations. If I do `class Foo(int...