News Score: Score the News, Sort the News, Rewrite the Headlines

A Rust API Inspired by Python, Powered by Serde

Years ago, I worked on reimplementing1 some Python code in Rust (yet again), and this time I needed to adapt Python’s dynamic capabilities (aka __getattr__) to the strict and compiled world of Rust.After some deliberation, and armed with the serde (de)serialization crate, I set out to do just that.So if you ever wondered what tricks Rust can learn from Python, and if serde can be used for reflection (please go along with me here), then the answer is very much yes!Let me show you how, and also wh...

Read more at ohadravid.github.io

© News Score  score the news, sort the news, rewrite the headlines