To Ruby from Python - f-strings/expression substitution
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- documentation
Research direction
Start with the “differences” section of documentation/ruby-from-other-languages/to-ruby-from-python/ and review its fourth point alongside the linked Python f-string example. Clarify whether the comparison is accurate and update the page so the relationship between the two syntaxes is unambiguous.
Written by the indexing model from the issue text.
Description
Heya,
I'm brand new to Ruby so I hope I'm not mistaken with this issue.
I was looking at this page: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-python/
The fourth point in "differences" is:
... a special “expression substitution” syntax (which allows you to insert the results of Ruby expressions directly into other strings without having to "add " + "strings " + "together"). ...
I get the sense that the expression substitution is the same as f-strings in Python which were introduced in 3.6. f"Hello {name}"
- Dominant language
- HTML
- Stars
- 944
- Forks
- 673
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/www.ruby-lang.org
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ruby/www.ruby-lang.org#3702 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
ruby/www.ruby-lang.org#2791 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
ruby/www.ruby-lang.org#3946 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
ruby/www.ruby-lang.org#3800 ·
-
ruby/www.ruby-lang.org#3791 · 1 comment · 1 reaction · 2 assignees ·
All issues in ruby/www.ruby-lang.org
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
certification
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
bisq-network/support#2181 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
tutorial updates Open
Difficulty 1/5 Under an hour Newbie friendliness 80/100
sveltejs/svelte.dev#2241 ·