show
show copied to clipboard
Python v Rust : Types and Patterns
What?
Pick your favorite patterns / types from Python and show how to use them, or not, in Rust
Why?
Adopters of Rust have prior background in other programming languages, including Python. Comparing Python techniques with those in Rust facilitates learning
How?
Examples:
- [x] list comprehensions vs function combinators (see #26)
- [ ] itertools.partial vs closure
- [ ] dict dispatch vs match
- [ ] try/except vs the Rust variety
- [ ] pypi vs cargo
Wow, that's a wonderful idea! I will definitely consider that for the next shows. Thanks!
@mre for more on this: https://github.com/rochacbruno/py2rs
Nice! I could see it as some kind of extension to what is mentioned in that post. As you said, list comprehensions, pattern matching, exception handling, that kinda stuff. Definitely a good candidate for one of the next shows.
Thanks again @Dowwie for your ideas. I picked out list comprehensions from your suggestions and talked about it in episode 2 (see #26). Will cover the rest of the topics at a later point in time I hope. 😄
woo! got the shout out.
Hope I pronounced your name correctly during the show. 😆