快速跳转
  • -概览
  • -语言特性
  • -与 JS 互操作
  • -构建系统
Documentation
语言手册
所有的语言特性的参考指南
ReScript & React
ReactJS 的一等公民绑定
GenType
无缝衔接 TypeScript & Flow 集成
Reanalyze
死代码消除 & 停机分析
Exploration
语法查找
探索所有语法结构
API工作台
  • 工作台
  • Blog
  • Twitter
  • GitHub
  • Forum
Language Manual
概览
  • Introduction
  • Installation
  • Editor Plugins
  • Migrate to ReScript Syntax
  • Try
语言特性
  • Overview
  • Let Binding
  • Type
  • Primitive Types
  • Tuple
  • Record
  • Object
  • Variant
  • Polymorphic Variant
  • Null, Undefined and Option
  • Array & List
  • Function
  • If-Else & Loops
  • Pipe
  • Pattern Matching / Destructuring
  • Mutation
  • JSX
  • Exception
  • Lazy Value
  • Async & Promise
  • Module
  • Import & Export
  • Attribute (Decorator)
  • Unboxed
  • Reserved Keyword
高级特性
  • Extensible Variant
JavaScript 互操作
  • Interop Cheatsheet
  • Embed Raw JavaScript
  • Shared Data Types
  • External (Bind to Any JS Library)
  • Bind to JS Object
  • Bind to JS Function
  • Import from / Export to JS
  • Bind to Global JS Values
  • JSON
  • Inlining Constants
  • Use Illegal Identifier Names
  • Generate Converters & Helpers
  • Browser Support & Polyfills
  • Libraries & Publishing
构建系统
  • Overview
  • Configuration
  • Configuration Schema
  • External Stdlib
  • Pinned Dependencies
  • Interop with JS Build Systems
  • Performance
  • Warning Numbers
指引
  • Converting from JS
补充
  • Newcomer Examples
  • Project Structure
  • FAQ
文档 / Language Manual / Reserved Keyword
Edit

Reserved Keywords

Note: Some of these words are reserved purely for backward compatibility.

If you need to use one of these names as binding and/or field name, see Use Illegal Identifier Names.

  • and

  • as

  • assert

  • constraint

  • else

  • exception

  • external

  • false

  • for

  • if

  • in

  • include

  • lazy

  • let

  • module

  • mutable

  • of

  • open

  • rec

  • switch

  • true

  • try

  • type

  • when

  • while

  • with