Skip to content

Commit

Permalink
language tour: remove old 'automatic closures' page
Browse files Browse the repository at this point in the history
fixes #1691
  • Loading branch information
SethTisue committed Oct 22, 2024
1 parent d49338f commit 7005f75
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 69 deletions.
2 changes: 1 addition & 1 deletion _es/tour/multiple-parameter-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ partof: scala-tour
num: 15
language: es

next-page: automatic-closures
next-page: operators
previous-page: nested-functions
---

Expand Down
2 changes: 1 addition & 1 deletion _es/tour/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ num: 17
language: es

next-page: higher-order-functions
previous-page: automatic-closures
previous-page: multiple-parameter-lists
---

En Scala, cualquier método el cual reciba un solo parámetro puede ser usado como un *operador de infijo (infix)*. Aquí se muestra la definición de la clase `MyBool`, la cual define tres métodos `and`, `or`, y `negate`.
Expand Down
1 change: 0 additions & 1 deletion _es/tour/tour-of-scala.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ El [mecanismo de inferencia de tipos locales](type-inference.html) se encarga de

En la práctica, el desarrollo de aplicaciones específicas para un dominio generalmente requiere de "Lenguajes de dominio específico" (DSL). Scala provee una única combinación de mecanismos del lenguaje que simplifican la creación de construcciones propias del lenguaje en forma de bibliotecas:
* cualquier método puede ser usado como un operador de [infijo o postfijo](operators.html)
* [las closures son construidas automáticamente dependiendo del tipo esperado](automatic-closures.html) (tipos objetivo).

El uso conjunto de ambas características facilita la definición de nuevas sentencias sin tener que extender la sintaxis y sin usar facciones de meta-programación como tipo macros.

Expand Down
2 changes: 1 addition & 1 deletion _ko/tour/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ num: 31
language: ko

next-page: packages-and-imports
previous-page: automatic-closures
previous-page: operators
---

어노테이션은 메타 정보와 정의 내용을 연결해준다.
Expand Down
2 changes: 1 addition & 1 deletion _ko/tour/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ partof: scala-tour
num: 29
language: ko

next-page: automatic-closures
next-page: annotations
previous-page: type-inference
---

Expand Down
2 changes: 1 addition & 1 deletion _pt-br/tour/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ partof: scala-tour

num: 31
next-page: packages-and-imports
previous-page: automatic-closures
previous-page: operators
language: pt-br
---

Expand Down
2 changes: 1 addition & 1 deletion _pt-br/tour/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Operadores
partof: scala-tour

num: 29
next-page: automatic-closures
next-page: annotations
previous-page: type-inference
language: pt-br
---
Expand Down
1 change: 0 additions & 1 deletion _pt-br/tour/tour-of-scala.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Um [mecanismo de inferência de tipo local](type-inference.html) se encarrega pa
Na prática, o desenvolvimento de aplicações de um determinado domínio geralmente requer uma linguagem de domínio específico. Scala fornece uma combinação única de mecanismos de linguagem que facilitam a adição suave de novas construções de linguagem na forma de bibliotecas:

* qualquer método pode ser utilizado como um [operador infix ou postfix](operators.html)
* [closures são construídas automaticamente dependendo do tipo esperado](automatic-closures.html) (tipo alvo).

Uma utilização conjunta de ambos os recursos facilita a definição de novas instruções sem estender a sintaxe e sem usar meta-programação como macros.

Expand Down
61 changes: 0 additions & 61 deletions _tour/automatic-closures.md

This file was deleted.

1 change: 1 addition & 0 deletions _tour/by-name-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ next-page: annotations
previous-page: operators

redirect_from: "/tutorials/tour/by-name-parameters.html"
redirect_from: "/tutorials/tour/automatic-closures.html"
---

_By-name parameters_ are evaluated every time they are used. They won't be evaluated at all if they are unused. This is similar to replacing the by-name parameters with the passed expressions. They are in contrast to _by-value parameters_. To make a parameter called by-name, simply prepend `=>` to its type.
Expand Down

0 comments on commit 7005f75

Please sign in to comment.