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

12-Browser-Support-Polyfills.mdx 번역 #46

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/JavaScript-Interop/05-Bind-to-JS-Function.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var root = Path.dirname('/User/github');

## 이름이 있는 인자

ReScript는 [이름이 있는 인자](/Language-Features/12-Function/이름이있는인자) (물론 옵셔널입니다) 를 가지고 있습니다. `external` 에서도 동작합니다! 자바스크립트 함수의 명확하지 않은 사용법을 _수정하는데_ 사용됩니다. 아래 내용을 모델링한다고 가정해봅시다:
ReScript는 [이름이 있는 인자](https://rescript-lang.org/docs/manual/latest/function#labeled-arguments) (물론 옵셔널입니다) 를 가지고 있습니다. `external` 에서도 동작합니다! 자바스크립트 함수의 명확하지 않은 사용법을 _수정하는데_ 사용됩니다. 아래 내용을 모델링한다고 가정해봅시다:

```js
// MyGame.js
Expand Down Expand Up @@ -93,7 +93,7 @@ var el = document.getElementById('myId');

### 체이닝

자바스크립트 OOP 에서 `foo().bar().baz()` 와 같은 체이닝 ("흐름을 가지는 API") 를 써본적 있나요? ReScript 도 물론 [파이프 오퍼레이터](pipe.md)를 이용해서 똑같이 할 수 있습니다.
자바스크립트 OOP 에서 `foo().bar().baz()` 와 같은 체이닝 ("흐름을 가지는 API") 를 써본적 있나요? ReScript 도 물론 [파이프 오퍼레이터](https://rescript-lang.org/docs/manual/latest/pipe)를 이용해서 똑같이 할 수 있습니다.

## 가변 함수 인자

Expand Down
6 changes: 3 additions & 3 deletions content/JavaScript-Interop/12-Browser-Support-Polyfills.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ sourceUrl: 'https://rescript-lang.org/docs/manual/latest/browser-support-polyfil
canonical: 'https://rescript-lang.org/docs/manual/latest/browser-support-polyfills'
---

ReScript compiles to JavaScript **ES5**, with the exception of optionally allowing to compile to ES6's module import & export.
리스크립트는 자바스크립트 **ES5**로 컴파일됩니다. 예외적으로 ES6의 모듈은 가져오거나 내보내는 것을 허용하고 있습니다.

For [old browsers](https://caniuse.com/#search=typed%20array), you also need to polyfill TypedArray. The following standard library functions require it:
[오래된 브라우저](https://caniuse.com/#search=typed%20array)에서 사용할 때, TypedArray를 폴리필해야합야합니다. 다음의 표준 라이브러리 기능은 TypedArray를 필요로합니다.

- `Int64.float_of_bits`
- `Int64.bits_of_float`
- `Int32.float_of_bits`
- `Int32.bits_of_float`

If you don't use these functions, you're fine. Otherwise, it'll be a runtime failure.
이 함수를 사용하지 않아도 괜찮습니다. 그렇지 않으면, 런타임 오류가 발생할 것입니다