4min chapter

 Rustacean Station  cover image

What's New in Rust 1.40

Rustacean Station

CHAPTER

Using Procedurea Macros in a Scripting Environment?

Prior to this release, you could only use function like pocedra macros in what's called item position. This is where you'd usually define your strucks and statics and all these things in your code. And now you can do it in type context, but for example, you still can't do it in expression context. So that th gits mostly the useer r, kind of like one flagship use for this. I think they are trying to remove those diferences as much as possible. Although i don't really know why that is, but it's interesting that it's the case.

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