show icon indicating copy to clipboard operation
show copied to clipboard

Python v Rust : Types and Patterns

Open Dowwie opened this issue 7 years ago • 6 comments

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

Dowwie avatar Mar 18 '18 19:03 Dowwie

Wow, that's a wonderful idea! I will definitely consider that for the next shows. Thanks!

mre avatar Mar 18 '18 22:03 mre

@mre for more on this: https://github.com/rochacbruno/py2rs

Dowwie avatar Mar 19 '18 11:03 Dowwie

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.

mre avatar Mar 19 '18 11:03 mre

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. 😄

mre avatar Apr 03 '18 13:04 mre

woo! got the shout out.

Dowwie avatar Apr 03 '18 16:04 Dowwie

Hope I pronounced your name correctly during the show. 😆

mre avatar Apr 03 '18 19:04 mre