Bob Nystrom

Results 972 comments of Bob Nystrom

For reference, Rust [decided to use postfix syntax for `await`](https://boats.gitlab.io/blog/post/await-decision/). I like prefix `await` for most cases, but it would be nice to support a postfix form in method chains...

No updates. We've been focused on larger higher priority issues (metaprogramming, primary constructors, static member shorthands, etc.).

> My guess is that it doesn't really work as intended That's correct. The extension method here doesn't actually do anything. The caller would still need to await the result.

> I'd be very, very worried about loosening up on that, because there is no telling how much code will simply break if calling `.then` will synchronously call the callbacks...

Related: [Conditional attribute in C#](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.conditionalattribute?view=net-8.0).

> We can already do conditional compilation using `if (const String.fromEnvironment("dart.config.os" == "windows"))`. That only works inside imperative code. There's no way to conditionally include or exclude an entire declaration,...

I've never particularly liked Dart's verbosity here, but I suspect the value of improvement here is too marginal to be worth the cost in migration. It's like trying to move...

Yeah, I agree this is a corner of the new style that could stand to be tweaked. When first implementing the new style, I put some time into coming up...

Here's my thoughts for what they are worth... ### Semantics I agree with Lasse that a kind of code that crashes at runtime if it happens to touch any static...

I'm not morally opposed to support file exclusions in the formatter. But it is a somewhat hard engineering change because it means the formatter needs to start looking around in...