Lasse R.H. Nielsen
Lasse R.H. Nielsen
> **Basically, unless the return type is `void` or something wrapped around `void`, it should probably be an error to not have a return value.** Yes please! Just `void` or...
> How do people feel about `{}` vs `{return;}` vs `{return null;}`? Semantically, there's no difference. Runtime semantics are the same, all return the value `null`. Semantic specification differs, `return;`...
> To be clear, the semantic specification does not differ. I'm saying that the semantic definition does distinguish `return;` from `return null;`. It may be a distinction without a semantic...
Agree that `async` functions really do return a `Future`, whether or not their body returns a value. That's defined in the rules for invoking an `async` function, which then executes...
I do read this as a request for an analyzer warning, perhaps on unguarded self-recursion.
The argument for introducing `UnmodifiableUint8ListView` and the rest, were that some native platforms were presenting views of actually unmodifiable memory, and wanted to not cause the process to crash if...
IIRC, the original request was from the assistant team. That's where we should look for existing uses.
An issue is that `yield` (and `await`) are not reserved words in non-`async`/`async*`/`sync*` functions, so "find a `yield` statement" won't be trivial. ```dart void main() { yield (2 + 5);...
Would have been nice to avoid the name clash, if we had been aware of it from the start. The best change would have been to change the `log` in...
Agree on the template documentation. Templates that are only intended for internal use should be documented clearly as such. Even if it means starting their name with you `[Internal use...