News for hackers. Stuff that matters.
Re:Zig's dot star syntax (value.*) by wruza on Sunday March 09, 2025 @07:56AM (#43308294)
Is this something you write often in Rust? A promise returning a struct with a promise returning a struct with a promise.

Although I agree that await could use some precedence like new in javascript:

  new types.Date().toJSON()
  // fine

  await readdir(…).filter(…)
  // oops
I’d rather parenthesize what I’m awaiting in complex cases than awaiting just everything that follows.

There are no comments on this comment yet.