Reason
  • Docs
  • Try
  • API
  • Community
  • Blog
  • Languages icon繁體中文
    • 日本語
    • English
    • Deutsch
    • Español
    • Français
    • 한국어
    • Português (Brasil)
    • Русский
    • Українська
    • 中文
    • 協助翻譯
  • GitHub
Hello! This particular page hash has moved to . Please update the URLs to reflect it. Thanks!
Reason
type schoolPerson =
  | Teacher
  | Director
  | Student(string);

let greeting = person =>
  switch (person) {
  | Teacher => "Hey Professor!"
  | Director => "Hello Director."
  | Student("Richard") =>
    "Still here Ricky?"
  | Student(anyOtherName) =>
    "Hey, " ++ anyOtherName ++ "."
  };
type schoolPerson = Teacher | Director | Student(string);

let greeting = person =>
  switch (person) {
  | Teacher => "Hey Professor!"
  | Director => "Hello Director."
  | Student("Richard") => "Still here Ricky?"
  | Student(anyOtherName) => "Hey, " ++ anyOtherName ++ "."
  };
Reason 讓撰寫簡單、快速及高品質型別的安全程式碼,同時擁有 JavaScript & OCaml 生態系統。
線上試用
Quick Start

無擾型別

強大,安全的型別推斷,不太需要標註型別,自動為您檢查

Use the power of the OCaml ecosystem

Get access to the powerful systems programming language OCaml with an easier to learn syntax. Use js_of_ocaml to compile to JavaScript!

Reason 用戶

FacebookMessengerOneGraphViskaBeOpSocial TablesBroadsheetToughbyteg2i.coTinyRungAstrocodersAhrefsDernier CriBacktraceMobilunityAppierInVisionCoursebaseImandra IncTail RecursiveGangverkLaTeX Baseohne-MaklerSotheby's上线了 SXL.CNJoinUpLenus eHealthPupilfirstnittygrittyLeon SoftwarexorlabcodeheroesControl Center AppsruangguruDraftbitQwickReveryOnivim 2O(1) LabsminimaIteamAstrolabe DiagnosticsAuditlessCutiiBand ProtocolRaditycodecentricTradie TrainingPorterOxidizing SystemsTenzir
瀏覽完整名單