규칙 1.6
이 페이지에서

규칙 1.6

1장, 소개 리뷰

TypeShade code is compute code: it computes results from data, may run in parallel, and gives the same answer on every target. Code that reaches the world outside the computation (input and output, the network, the DOM, timers, the clock, unseeded randomness, eval, a dynamic import) is host code, written in TypeScript as today. A form TypeScript authors commonly write in compute code, a form of the language or a member of its standard library, must be supported by the compiler. A TypeShade name or a library function is not a substitute for it; a library holds what TypeScript has no standard form for. A refusal is the last resort, and names the reason the compiler cannot represent the form on that target (Rule 1.5).

규칙 본문과 그 아래 항목은 설계 문서에 적힌 컴파일러 원문이라 한국어 페이지에서도 영어로 둡니다.

근거

a TypeShade author is a TypeScript developer. A form they reach for first and find refused costs them a detour, and the detour is code: TypeCV’s audit of 2026-10-27 counts 188 lines of hand-made hash tables, 122 of sorting and 77 of bounded lists that a Map, sort and push would hold. The §9.3 table (Rule 9.6) is already shrink-only; a row whose TypeScript form the compiler comes to support is deleted by Rule 13.7. The boundary is the present stage’s, not a permanent one, and a refusal of host code names the host as the place to write it.

출처

changes/0100-typescript-meaning.md (section 2, decision D11).

검증 방식

리뷰로 지킵니다. 확인하는 파일은 없고, 규칙 스스로 리뷰가 지킨다고 적어 두었습니다.

컴파일러가 이 규칙을 적용하는 곳을 규칙이 직접 적은 내용입니다.

review; Appendix B, under Rule 1.1, for the units of docs/typeshade-plan.md that add the forms still refused.

함께 보기

소스

커밋 af54ddad5의 규칙 원문:

이 페이지 편집 문제 보고