Lasse R.H. Nielsen

Results 772 comments of Lasse R.H. Nielsen

Updated "structure" -> "shape". We could allow it to work for `List` as well, based on static type. Maybe. Depends on whether we can precisely define **flatten** and have runtime...

> Is this correct: the error value is a record-tree with the same shape-tree as the await argument, but with null in the error positions. Yes. That allows us to...

There are complications around parallel wait that must be addressed. * If more than one future throws, the result should throw. What should it throw? * If some futures complete...

The only real problem with using library methods/extensions is that it doesn't scale infinitely. The good thing is that if _all_ you want is parallel computation, it doesn't need to...

@munificent That too. A record is a fixed number, *n*, of separate and distinct values. If you have a fixed large number of independet futures that you need to await,...

Or #265. Then it would be. e.g., ```dart final data = callApi(=> it.getData()); ```

I'd say "yes". If it works, it feels odd to not allow it. I can't see a reason it shouldn't work. It's a little weird that it only works with...

> Is there any reason not say that every primary constructor is a const constructor (at least if the superclass has a const constructor)? We'd need to give you a...

What @munificent says. Parameter list occurs after class name — and after type parameters if any. I'm actually, uncharacteristically, fine with allowing the field names in the parameter list to...

Data classes/`struct`s can be constant if their superclass is constant (and the superclass must be an abstract struct or the `Object` (or `Struct`, if we have it) class, so that...