Comment

Comment by PoignardAzur

I know a lot of people are enthusiastic about async traits, but for me, it's "We can return 'impl MyTrait' from trait methods! Finally!"

There were a bunch of instances in my code where I really wanted to specify "this trait returns an arbitrary iterator of X" instead of "this trait returns Vec<X>". It's nice to finally be able to write it that way.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton