You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... 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}"
The text was updated successfully, but these errors were encountered:
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:
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}"
The text was updated successfully, but these errors were encountered: