Reason
  • Документация
  • Попробовать
  • API
  • Сообщество
  • Блог
  • Languages iconРусский
    • 日本語
    • English
    • Deutsch
    • Español
    • Français
    • 한국어
    • Português (Brasil)
    • Українська
    • 中文
    • 繁體中文
    • Помочь с переводом
  • GitHub

›Установка

Введение

  • Что и зачем

Установка

  • Установка
  • Плагины для редакторов и IDE

Основы языка

  • Обзор
  • Let Bindings
  • Primitives
  • Basic Structures
  • Types
  • Records
  • Variants
  • Options and nullability
  • Functions
  • Recursion
  • Деструктуризация
  • Pattern Matching
  • Mutable Bindings
  • Loops
  • Modules

Advanced Features

  • JSX
  • External
  • Исключения
  • Объекты

JavaScript

  • Взаимодействие с JavaScript
  • Шпаргалка по синтаксису
  • Pipe First
  • Промис
  • Библиотеки
  • Конвертация из JS

Дополнительно

  • Часто задаваемые вопросы (FAQ)
  • Дополнительные инструменты
Translate

Плагины для редакторов и IDE

Reason's nature lends itself to great editor support. Most of our editor plugins provides at minimum:

  • Показ типов.
  • Форматирование кода с помощью refmt.
  • Показ ошибок и предупреждений.
  • Подсветка синтаксиса.
  • Автокомплит, учитывающий типы.
  • Переход к определению.

And other features.

Editor Plugins & Language Server

Since Reason is just an alternative syntax for OCaml, we integrate seamlessly into the official OCaml editor toolchain as well.

  • For VSCode, we recommend using the vscode-ocaml-platform plugin, which offers OCaml & Reason support out of the box.
  • For other editors, we recommend using a language server client plugin of your choice, and pairing it with the ocaml-lsp. Check out the respective README's to get started.

Other:

  • Vim/Neovim: Make sure to use ocaml-language-server for native development as suggested. (Mac, Linux): npm install -g ocaml-language-server
  • vim-reasonml: For use with esy, Reason, and Merlin (not LSP based). (Mac, Linux, Windows).
← УстановкаОбзор →
  • Editor Plugins & Language Server