Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RU] Improve the explanation of pattern matching #810

Merged
merged 1 commit into from Nov 19, 2016

Conversation

nscyclone
Copy link
Member

The original changes can be found in #808.
@brain-geek, could you review this, please?

@nscyclone nscyclone added enhancement An enhancement to Elixir School content translation The translation of Elixir School content labels Nov 18, 2016
@@ -12,7 +12,7 @@ lang: ru

## Оператор сопоставления

В языке Elixir оператор `=` называется оператором сопоставления. С его помощью можно как назначать, так и сравнивать значения:
В языке Elixir оператор `=` на самом деле является оператором сопоставления по аналогии со знаком равенства в алгебре. Его использование превращает всё выражение в уравнение, и Elixir сопоставляет левую часть выражения с правой. В случае успешного сопоставления вернётся решение уравнения, иначе возникнет ошибка:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

всё выражение

всё тут лишнее

В случае успешного сопоставления вернётся решение уравнения, иначе возникнет ошибка

Вернется на самом деле само решенное уравнение.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @brain-geek!
I don't clearly understand why do you suggest само решенное уравнение instead of решение уравнения. For example, x = 1 returns and assigns the solution but not the equation itself.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if you're talking about example like

{true, x} = Application.getenv()
the solution is x, while {true, x} gets returned.

@nscyclone

@brain-geek
Copy link
Contributor

@nscyclone Please look at the feedback.

@nscyclone
Copy link
Member Author

Thanks, @brain-geek, I've addressed all of your feedback. Merging this.

@nscyclone nscyclone merged commit 5cd330c into elixirschool:master Nov 19, 2016
@nscyclone nscyclone deleted the upd/ru/pattern-matching branch November 19, 2016 16:32
@ybur-yug ybur-yug mentioned this pull request Nov 28, 2016
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to Elixir School content translation The translation of Elixir School content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants