Wdestroier

Results 109 comments of Wdestroier

Great, thank you very much for the explanation, @eernstg!

@lrhn the line with `defer` will run after the current function. Would be equivalent to: ```dart stmts1; try { stmts2; } finally { stmt; } } // end of block....

Thanks @lrhn! The approach looks interesting. I will give it a try. > I wish we had better function composition to avoid the "function in function" I agree a language...

> The with keyword / context managers in Python goes halfway there and lets objects describe the cleanup code necessary when the with block they are bound to goes out...

I like the idea of allowing an explicit default generic type. It's very useful once in a lifetime. What should be inferred for the following class? ```dart class Foo {...

> It seems what I want is quite similar to the following Rust sample code: > > pub struct NewsArticle { pub headline: String, pub location: String, pub author: String,...

> I keep accidentally passing Future into code blocks. Could a lint help? The lint could tell you when you're interpolating a Future in a String.

I would like to suggest the ```dart bool compare(String a, String b) = super.compare; ``` syntax, which is shown twice in #3427, instead of ```dart bool compare(String a, String b)...

> I tend to think that a more specific token like ==> is useful for the overall readability of the code, and in order to avoid parsing ambiguities. Thank you,...

`Iterable` is a mixin. You can write `class MyIterable with Iterable { ... }`. Have you tried the following? ```dart main() { for (var naturalNumber in NaturalNumbers()) { print(naturalNumber); }...