Matthew McDonald

Results 66 comments of Matthew McDonald

Heres another idea. what if we introduce a `local` keyword (as @Wdestroier suggests) but it works like `this` and `super`. ```dart class A(int x); class B(int super.x, int this.y, int...

> Interesting! So `this.x` would be declaring and `local.x` would be non-declaring? Yes, that is correct. > It does make sense that the `local.` declaration is a parameter (only), which...

> The language already uses surrounding context to change the semantics of a piece of code in a few ways, like `const` context. So it's not unreasonable to suggest that...

Some counterpoints. 1. `.new` is 4 characters, is it really that lengthy? I doubt very many type names are 3 or fewer characters. 2. `.()` is a little inconsistent because...

If there was a special case shorthand for `Foo()` I would prefer `()` if possible (no leading `.`). This would be consistent with just dropping the type name when you...

I would like this proposal better if all parameters were also updated to `final` by default. It's a breaking change, but the behavior would be consistent across headers, parameters, and...

> Subtleties of this that we'd have to work out: > > * Is it ok to leave a return type off of `main`? It's really common to do so....

One of the biggest problems with writing try catch in dart is that is figuring out which specific exceptions can be thrown, (not just if an exception can be thrown)....

@lrhn I think what most users want is not actually checked exceptions just a better way to signal to the tooling what exceptions are thrown, and for the tooling to...