Rust's most wanted feature just arrived!

preview_player
Показать описание
The wait is over! The highly anticipated feature in Rust has finally landed. In this video, let's delve into the latest addition that the Rust community has been clamoring for.

Chapters:
0:00 Intro
0:12 The feature
1:00 How to use it
1:59 Limitations
3:24 Conclusion
Рекомендации по теме
Комментарии
Автор

my most wanted feature is fast compile times 😢

TheSast
Автор

The problem with dynamic dispatch is that it's kinda infectious. If you want your trait to be object safe, all the traits it consumes or produces have to become trait objects too.

tacticalassaultanteater
Автор

Aahhhh, you missed the pun in the title.
Most awaited feature in rust!

johanneslade
Автор

BTW traits are like interfaces in C# too, like Java, not like abstract classes. I’ve heard you say that in other videos so pointing out for the future.

RaijuZer
Автор

Hey man, I just wanted to say congrats on getting 100k. It's super awesome to see one of the long-term channels that I've learned so much from get some well deserved reward.

joshuarose
Автор

"async fn" and "impl Trait" in traits are just a start, the rust lang team has proposed a whole agenda, what should happen with async rust this year (and probably next year). Only at the end of that journey, async and normal rust can be used interchangeably.

flippert
Автор

really cool! Is your paid course going to have an update with this new feature? Maybe with examples or use cases, or are you going to wait till the limitations mentioned on this video are no longer an issue?

ringo.gg.
Автор

0:54 The equivalent of interfaces in C# is... interfaces. C# has them too.

mariocamspam
Автор

I want an official async runtime.
I'm sick if writing rust libraries that has to be compatible with 69 async runtime libraries

krtirtho
Автор

Hey, I'm new to Rust. How can I learn about that `trait X = Y;` syntax at 2:18? I can't recall having seen it before, and my Google-fu is failing me.

GrantGryczan
Автор

Is this the same thing as an interface method returning a Task<> in C#?

Crozz
Автор

can't wait to make my async trait based entity component system (sadly async traits aren't "send" yet and no dynamic dispatch womp womp)

tgirlshark
Автор

I'm surprised you didn't talk about how this feature also depended on GATs which was a whole other milestone unto itself; missed opportunity to talk about how `impl` returns implicitly create anonymous `type` items.

daniihh
Автор

Wait, the traits functuons don't have function bodies?

In php our traits have function bodies, but i really shouldn't trust anything php does as the right way.

reed
Автор

Rust is becoming the C++ and Java lovechild at this point

superuser
Автор

I don't get this "not allowed" syntax: `trait HttpService = LocalHttpService<fetch(): Send> + Send;`
I get the "+ Send" syntax because because I saw such syntax in trait bounds. But the `<fetch(): Send>` part? Does Rust has such syntax now?

ChyK
Автор

it's kinda crazy that they implemented async await in rust. does it use a runtime in the background?

CjqNslXUcM
Автор

And meanwhile impl trait in type alias (ITTA) is still nowhere getting stabilized, let alone impl trait in associated types (which would have made this feature easier to implement)

shadamethyst
Автор

Most wanted feature is a simple syntax

NorthEagle
Автор

My most wanted feature is const float arithmetic functions.

gljames
join shbcf.ru