News for hackers. Stuff that matters.
Re:A Rust API Inspired by Python, Powered by Serde by dundarious on Thursday May 15, 2025 @02:37PM (#43997946)
What's the difference between mistyping in the string here and mistyping in the struct definition? And yes I have.
Re:A Rust API Inspired by Python, Powered by Serde by olalonde on Thursday May 15, 2025 @02:55PM (#43998137)
You only need to get it right once, and from then on the compiler will catch any mistakes if you use it incorrectly. In contrast, every time you write obj.get_attr("DesiredSpeed"), there's a chance you'll make a typo and the compiler won't warn you about it.