Skip to content

piotrdubiel/reasonml-bucklescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReasonML + BuckleScript = 🎉

Javascript is great, because of ecosystem & tools, not because it’s maintainable out-of-the-box

Two approaches

  • Flowtype & Typescript
  • Elm, ClojureScript, PureScript

Types are useful

  • when composing curried functions it's easy to make a mistake

React is functional

  • components as functions of state
  • preferably immutable
  • declarative
  • emphasis on first-class and higher-order functions

BuckleScript

Bloomberg

BuckleScript

Why OCaml

  • Sound type system.
  • Strong type inference.
  • Expressive type features, like variants, modules & objects.

BuckleScript features

  • dead code elimination,
  • compile-time optimizations,
  • readable & tiny JS output,
  • preservation of code structure,
  • fast iteration loop,

Syntax

Pattern matching

Modules

Currying

Mutations

Prettier

refmt

Best of two worlds

Ocaml + Javascript

Reason-React and bs-react-native

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published