Bob Nystrom

Results 973 comments of Bob Nystrom

I'm going to close this out because I think it's mostly covered by other issues. We definitely know that many many users highly desire something like data classes in Dart,...

Possibly not exactly what you had in mind, but with patterns, you can now do: ```dart if(parseCursorPosition(chars) case var point when point != null) { // Do something with point...

> are there any obstacles preventing patterns from being used in loops like : No, no problems with supporting patterns in while loops, we just didn't get time to design...

@ramsestom, what would you have the following program print: ```dart foo([String? optional = "default") { print(optional); } main() { foo(null)); } ``` In other words, in cases where `null` *is*...

You can even do ranges: ```dart switch (opcode) { // opcode is a byte case >= 64 &&

There were a handful of comments that were all either just "+1" or "+1 for this feature", which is better expressed by adding a 👍 to the issue itself, so...

> @irhn what about python like args/kwargs: `def fun(*args, **kwargs): pass` Python's approach doesn't work well in a statically-typed language like Dart where you want to be able definitely associate...

We definitely love getting help from external contributors. :) But this is a particularly tricky issue because it affects the language's calling convention. That requires work in all of our...

Yes, this sounds like a language request to me. Want to move it over to the language repo?

Overall, yes, I like this and think it can work. This is mostly a matter of taste, but I find it hard to like the leading `./` for relative paths...