Mateus Felipe C. C. Pinto

Results 288 comments of Mateus Felipe C. C. Pinto

@jensjoha Only if you ignore `camel_case_types` and `non_constant_identifier_names`, which I wouldn't recommend. Otherwise, `Foo()` would be clearly an object instantiation.

I love the idea. I am not sold on this syntax, tho.

I use non-growable lists by default. Although for many cases the difference is negligible, the cost to have this little optimization is also negligible, i.e. just put a `growable: false`...

> On the other hand, I bet one of the most common use cases for destructuring maps is going to be for decoding JSON objects that represent structures. And a...

As I am biased to ML I would love to see a complete equivalence. I know that there are some limitations to it in the context of Dart, tho.

Duplicate of #1122.

> Having function overloading would resolve a lot of problems that now can only by solved using dynamic or separated interfaces. @Andrflor Could you give us a concrete example? The...

> Even a simple `try catch` uses overloading by allowing `catch(e)` and `catch(e, st)` but you can't do that with regular methods. I can't say if `catch` is overloaded internally,...

@Andrflor Considering you own those classes, you could model them this way: ```dart abstract class WithStream { Stream get stream; } class Rx with WithStream { @override final Stream stream;...

> BTW, this is the opposite of what the [`unnecessary_await_in_return` lint](https://dart-lang.github.io/linter/lints/unnecessary_await_in_return.html) recommends, so if this is done, the lint will need to be removed or disabled, and maybe `analysis_options.yaml` files...