From c10e273c6b1d25198615230d7562b22dae3e340d Mon Sep 17 00:00:00 2001 From: Ahmed Elawad <73728149+ahmed-el-awad@users.noreply.github.com> Date: Fri, 8 Aug 2025 23:01:13 +0400 Subject: [PATCH] [elixir] unless got deprecated v1.18 (#5312) * [elixir/en] unless is deprecated since v1.18 * removed unless from the rest of the languages --- de/elixir.md | 7 ------- elixir.md | 7 ------- es/elixir.md | 7 ------- fr/elixir.md | 8 -------- it/elixir.md | 7 ------- pt-br/elixir.md | 7 ------- ro/elixir.md | 7 ------- ru/elixir.md | 7 ------- sk/elixir.md | 7 ------- zh-cn/elixir.md | 7 ------- zh-tw/elixir.md | 7 ------- 11 files changed, 78 deletions(-) diff --git a/de/elixir.md b/de/elixir.md index 67f0597f..3a194298 100644 --- a/de/elixir.md +++ b/de/elixir.md @@ -160,13 +160,6 @@ else "...aber dies!" end -# ...und ebenso `unless` -unless true do - "Dies wird nie jemand sehen..." -else - "...aber dies!" -end - # Du erinnerst dich an 'pattern matching'? Viele Kontrollstrukturen in Elixir # arbeiten damit. diff --git a/elixir.md b/elixir.md index b69e35c5..389536ee 100644 --- a/elixir.md +++ b/elixir.md @@ -168,13 +168,6 @@ else "This will" end -# There's also `unless` -unless true do - "This will never be seen" -else - "This will" -end - # Remember pattern matching? Many control-flow structures in Elixir rely on it. # `case` allows us to compare a value against many patterns: diff --git a/es/elixir.md b/es/elixir.md index c294f5f0..f569cc08 100644 --- a/es/elixir.md +++ b/es/elixir.md @@ -162,13 +162,6 @@ else "This will" end -# También está la expresión `unless` -unless true do - "This will never be seen" -else - "This will" -end - # Se acuerda de la coincidencia de patrones? # Muchas estructuras de control de flujo en Elixir confían en ella. diff --git a/fr/elixir.md b/fr/elixir.md index 55cf9173..bd43c6a9 100644 --- a/fr/elixir.md +++ b/fr/elixir.md @@ -173,14 +173,6 @@ else "Cela le sera" end -# Condition avec `unless` (sauf). -# Il correspond à la négation d'un `if` (si) -unless true do - "Cela ne sera pas vu" -else - "Cela le sera" -end - # Beaucoup de structures en Elixir se basent sur le pattern matching. # `case` permet de comparer une valeur à plusieurs modèles: case {:one, :two} do diff --git a/it/elixir.md b/it/elixir.md index a8225bd0..46269637 100644 --- a/it/elixir.md +++ b/it/elixir.md @@ -161,13 +161,6 @@ else "Questo sì" end -# c'è anche un `se non` (`unless`) -unless true do - "Questo non si vedrà mai" -else - "Questo sì" -end - # Ti ricordi il pattern matching? # Moltre strutture di controllo di flusso in Elixir si basano su di esso. diff --git a/pt-br/elixir.md b/pt-br/elixir.md index 4af54a58..4ce11dbd 100644 --- a/pt-br/elixir.md +++ b/pt-br/elixir.md @@ -156,13 +156,6 @@ else "Isso será" end -# Também há `unless` -unless true do - "Isso nunca será visto" -else - "Isso será" -end - # Lembra do pattern matching? Muitas estruturas de fluxo de controle em Elixir contam com ela. # `case` nos permite comparar um valor com muitos patterns: diff --git a/ro/elixir.md b/ro/elixir.md index 4bdc28d9..c7e52185 100644 --- a/ro/elixir.md +++ b/ro/elixir.md @@ -167,13 +167,6 @@ else "Aceasta veți vedea" end -# expresia opusă `unless` -unless true do - "Aceasta nu veți vedea niciodată" -else - "Aceasta veți vedea" -end - # Țineți minte potrivirea șabloanelor? Multe structuri în Elixir se bazează pe ea. # `case` ne permite să comparăm o valoare cu multe șabloane: diff --git a/ru/elixir.md b/ru/elixir.md index 6c2a338f..54448ca0 100644 --- a/ru/elixir.md +++ b/ru/elixir.md @@ -170,13 +170,6 @@ else "Вы увидите это" end -# Противоположный ему условный оператор `unless` -unless true do - "Вы этого никогда не увидите" -else - "Вы увидите это" -end - # Помните сопоставление с образцом? # Многие конструкции в Elixir построены вокруг него. diff --git a/sk/elixir.md b/sk/elixir.md index 2e00dcd1..20b1abb3 100644 --- a/sk/elixir.md +++ b/sk/elixir.md @@ -170,13 +170,6 @@ else "Toto bude" end -# Existuje aj `unless` -unless true do - "Toto nebude nikdy videné" -else - "Toto bude" -end - # Pamätáte sa na pattern matching? Mnoho štruktúr pre riadenie toku v # Elixir sa spoliehajú práve na pattern matching. diff --git a/zh-cn/elixir.md b/zh-cn/elixir.md index 6e0aea74..5fcc934f 100644 --- a/zh-cn/elixir.md +++ b/zh-cn/elixir.md @@ -148,13 +148,6 @@ else "This will" end -# 还有 `unless` -unless true do - "This will never be seen" -else - "This will" -end - # 在Elixir中,很多控制结构都依赖于模式匹配 # `case` 允许我们把一个值与多种模式进行比较: diff --git a/zh-tw/elixir.md b/zh-tw/elixir.md index e1f91e8e..c8306df4 100644 --- a/zh-tw/elixir.md +++ b/zh-tw/elixir.md @@ -151,13 +151,6 @@ else "This will" end -# 也有 `unless` -unless true do - "This will never be seen" -else - "This will" -end - # 還記得模式比對嗎?Elixir 中許多控制流程的結構都依賴模式比對來運作。 # `case` 讓我們可以將一個值與許多模式進行比對: