5min chapter

 Rustacean Station  cover image

What's New in Rust 1.40

Rustacean Station

CHAPTER

Embedded Languages Supporting Features That Enable Libraries to Evolve

There have been changes to the rust compiler that seem to be targeted primarily at macro authors. You can now call a function like procedura macros in type context. This lets you write macros in a somewhat convenient way. There are other types of macros that are not function like, and these would be things like a,. if you see a pound square bracket in front of a function or a type or something - so this would be stuff like derive a. It might be things like non exhaustive attribute Arguably using Eril is a macro isn't actually implemented but it's pretty useful. And i think even in the standard library, the standard io error kind works a little bit like this, where

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode