Bob Nystrom

Results 973 comments of Bob Nystrom

I definitely understand the desire for this feature. It seems like the names are *right there* and we should be able to hang useful behavior off them. But my feeling...

> If `default` is _just_ an alias for `case _` then isn't it just as (in)expressive/flexible? It's not simply an alias for `case _`, because `case _` can have a...

> > But what happens when a user tries to do: > > ```dart > > test(bool condition) { > > (int a, int b) v1 = (1, 2); >...

I'm going to go ahead and close the issue because this is working as intended, but thank you for bringing this up to discuss.

Actually, after thinking about this more on the drive home, maybe I closed it prematurely. :)

> However, I think it's straightforward to justify: if `subpattern?` matches something of type `int?`, for example, then the `?`s "cancel", and `subpattern` matches `int`. This is basically why it's...

> What would you write if you _want_ a constructor to be augmented to a redirecting (generative) constructor, redirecting to a constructor that hasn't been generated yet? Several times, we've...

> All we should have to do here is disallow augmenting final field getters, which it is anyways pretty reasonable to disallow. I think it's reasonable to want to apply...

> Dart already has a way of defining sealed union in OOP style Sealed types in Dart model sum types, not union types. [This article](https://viralinstruction.com/posts/uniontypes/) does a good job of...

> I'd recommend that we eliminate the support for these symbol literals containing a dot separated sequence of identifiers from the language, thus eliminating this syntactic ambiguity entirely. Agreed. Kill...