Reason
  • Documentation
  • Essayer
  • API
  • Communauté
  • Blog
  • Languages iconFrançais
    • 日本語
    • English
    • Deutsch
    • Español
    • 한국어
    • Português (Brasil)
    • Русский
    • Українська
    • 中文
    • 繁體中文
    • Aider à la traduction
  • Github

›Installation

Intro

  • Quoi & Pourquoi

Installation

  • Installation
  • Plugins éditeurs

Principes de base du langage

  • Aperçu
  • Let Bindings
  • Primitives
  • Basic Structures
  • Types
  • Records
  • Variants
  • Options and nullability
  • Functions
  • Recursion
  • Destructuring
  • Pattern Matching
  • Mutable Bindings
  • Loops
  • Modules

Advanced Features

  • JSX
  • External
  • Exception
  • Objet

JavaScript

  • Interopérabilité
  • Cheatsheet de la syntaxe
  • Pipe First
  • Promesse
  • Bibliothèques
  • Convertir depuis JavaScript

Extra

  • Foire aux Questions
  • Goodies supplémentaires
Translate

Plugins éditeurs

La nature de Reason se prête à un excellent support éditeur. La plupart de nos plugins éditeurs fournissent au minimum :

  • Affichage de types.
  • Mise en forme de code programmatique via refmt.
  • Affichage d'erreurs & de warnings.
  • Coloration syntaxique.
  • Autocomplétion basée sur les types.
  • Saut vers définition.

Et d’autres fonctionnalités.

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).
← InstallationAperçu →
  • Editor Plugins & Language Server