Reason
  • 문서
  • 해보기
  • API
  • 커뮤니티
  • 블로그
  • 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

Types without hassle

Powerful, safe type inference means you rarely have to annotate types, but everything gets checked for you.

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
전체 목록 보기