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

›Extra

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

Foire aux Questions

Je ne sais pas quoi faire avec Reason

You can do all the things you'd usually do with OCaml! OCaml is an incredible useful language for systems programming, while still being able to compile to pretty type safe JS with the aid of the js_of_ocaml compiler.

Natively compiled CLI's are also known to be really fast (like... C-like fast), and since the language is garbage collected, you will find yourself in a very nice spot of not having to worry about borrow-checking like in Rust and you don't have to deal with verbose non-ML languages like Go.

Reason also gives access to the declarative UI framework revery-ui to build native applications with a ReactJS like paradigm (+ JSX).

What is BuckleScript and ReScript, and why is it mentioned in so many Reason related resources?

Reason was originally bundled with BuckleScript (JS compiler) to provide a single toolchain for JS / ReactJS development.

In July 2020, BuckleScript released its own syntax and rebranded to ReScript to be its own language. More infos can be found in their official rebranding announcement.

← Convertir depuis JavaScriptGoodies supplémentaires →