Omar Kamel

Results 206 comments of Omar Kamel

This issue, where Date only needs a subset of DateTime, could be resolved with extension types. ```dart extension type Date._(DateTime inner) { const Date(DateTime inner) : inner = inner.copyWith(second: 0,...

> Node: This is somewhat similar to https://github.com/dart-lang/language/issues/736. Similar yes, though id also mention that rust traits have the limitations that you must own either the object or the trait...

You know... we have all of the pieces we need to make this work. - Augmentations: to add trait implementations directly to the classes (name-mangled, to avoid conflict) - Also,...

> If every type check in the program needs to check for a trait wrapping (or more than one), that's an extra cost everywhere. perhaps then type checking could be...

Are we sure we want it running sequentially? is there any reason that doing something like Future.wait or [].wait would be bad?

I see. Makes sense.

I can understand that, but I now need to remember to use a specific notifier method. I also _need_ a notifier, even if it might not otherwise be necessary. Being...

As far as I'm concerned, a dependency change is more of a "dirty" as opposed to an "invalidate" and shouldn't forward A refresh is just an invalidate + read, so...

Perhaps simply adding an `ref.onInvalidate((bool isRefresh) {})` hook could be plenty. It doesn't actively encourage the pattern, but it does make it possible

you know, maybe notifier could have an overridable method? like: ```dart class Notifier { ... // all invalidation calls actually reach this. (except for invalidateSelf, which actually reaches the element)...