Python influence on Rust

Open
#828 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, rust
Domain
documentation

Research direction

Start with the Rust Reference's influences page and the linked RFC process document. Review whether the two proposed topics—readability and RFC process—are supported as historical influences; the issue needs a concrete decision on additions and exact wording before documentation changes can be considered done.

Written by the indexing model from the issue text.

Description

https://doc.rust-lang.org/reference/influences.html

Not sure if it is valid, I found many code similarity between Python and Rust. I would say Python influences Rust in terms to having readable code, Pythonista called it Pythonic code, Rustaceans calls it idiomatic rust code. Doesn't it sounds similar? I know this is quite generic, but Python have autopep8 and Rust have rustfmt, both have an official style guide (unlike other languages).

Also, I think Rust RFC process is inspired by Python PEP. I was surprised when I heard Python PEP is similar to Rust RFC, I know it existed but I did not know they are similar. https://github.com/rust-lang/rfcs/blob/50748904312412849b2edf1c95dfba2b3a44bb1b/text/0002-rfc-process.md

As an alternative, we could adopt an even stricter RFC process than the one proposed here. If desired, we should likely look to Python's PEP process for inspiration.

Boils down to 2 items:

  • Readability
  • RFC
Dominant language
Rust
Stars
1.6k
Forks
607
Avg merge
1d 1h
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/reference

All issues in rust-lang/reference

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.