Bob Nystrom

Results 973 comments of Bob Nystrom

I'm agnostic and happy to defer to the stronger opinions of others.

"Super" is a red herring here. `super()`, `super.`, and `Enum` have nothing to do with this. :) Right now, you can write: ```dart enum MyEnum { final int value; const...

In addition, if the parameters are named, it might make sense to always split them.

> I think it would be worth looking at leveraging dart_style here @kallentu and I spent some time discussing that yesterday. There is the mechanical problem @srawlins mentioned about needing...

You're exactly right and I never considered that. I'm not actively working on the book, but if I ever get around to doing a second edition, I'll address this.

> To extend a per-field ordering to a total ordering, it's most likely necessary to pick an order on the fields. That choice isn't necessarily given. I agree that it...

I do think we should support this. Otherwise, I think we will end up with macros where users are forced to write: ```dart @awesomeThing SomeClass extends AwesomeThing { ... }...

We don't currently have any plans to do anonymous classes. While I've used them in other languages, I rarely find much desire for them in Dart. In Java, they were...

> Very little switch-pattern code has been written, and it already crops up, so I fear it might be serious useabilty stumbler. I have been worried about this exact footgun...

I think we've settled on leaving the feature as specified and trying to route around the footgun with lints: https://github.com/dart-lang/linter/issues/4195