Erik Ernst

Results 1003 comments of Erik Ernst

Looking at the generated code, I find this: ```javascript isSentinel(value) { return false; }, ``` and that seems to make the logic around the late final variable go wrong: The...

> generate code depending on usage of mirrors and will replace mirrors code by generated code The package [reflectable](https://github.com/google/reflectable.dart/tree/master/reflectable) contains a code generator which will very nearly do this. However,...

This is working as intended, and it is certainly possible for such casts to succeed: ```dart class A {} class B {} class AB implements A, B {} void main()...

I made a proposal for a safer variant of casting (for instance, a cast which is supposed to be a downcast could be expressed as such, and then we'd have...

> imo `unnecessary-cast` should be updated to support this usage The standard way to make a cast acceptable to the linter is to use `dynamic` as the mid point: `a...

I tend to think that it is unimportant to send a signal to every developer every time they use a zero-cost wrapper, indicating that it's to some extent the same...

Java uses `&` to specify intersection types (because comma creates ambiguities) for type variable bounds, so we could probably rather easily do something similar. However, there is also an ongoing...

I don't think #65 makes much difference here, because that proposal is about being able to declare aliases of types in general, rather than only being able to declare aliases...

I also prefer the approach where the compiler is allowed to implement identity as pointer identity.

The treatment of a conditional expression in connection with constant / potentially constant expressions does allow for abstractions that we can't express otherwise (which could be taken to mean that...