Bob Nystrom

Results 973 comments of Bob Nystrom

Yes, we aren't going to get any kind of record update in the initial release.

This is an interesting corner. We could do some kind of single-value null-aware element syntax like you suggest. I'm very hesitant to pile more semantics onto `?` because it's already...

I think the only difference is that in #219, you propose allowing `?` to elide arguments in argument lists as well. Otherwise, I think they're the same.

In case you're curious, I wrote a blog post a while back about the rationale behind that design choice: https://medium.com/dartlang/why-nullable-types-7dd93c28c87a

The first four examples you link to don't create read-only lists, they create *mutable fixed-size* ones. Likewise, uses of `unmodifiable()` and friends don't always create *immutable* lists, they create read-only...

I think the proposal does specify most of this, and the answers are: ```dart const int x = 3; const int y = 3; void main() { int q =...

While I'm not generally a huge fan of trailing commas, I agree completely that if we support them, we should support them uniformly. Heck, we already even allow them in...

> Is it personal preference or is there some non-obvious reason why you have that opinion? Like Lasse said, I don't generally like having two ways to say the same...

> Does the pattern `{'k': true}` match maps with more than one key? I guess it must, otherwise the cases above wouldn't even be near exhaustive for maps. Yes, according...

> As long as I understand your worry regarding how practical this will be, do we want to make it impossible to match maps strictly? What if the user wants...