BuckleScript

BuckleScript

  • Docs
  • Try
  • API
  • Community
  • Blog
  • Languages iconEnglish
    • 日本語
    • Español
    • Français
    • 한국어
    • Português (Brasil)
    • Русский
    • 中文
    • 繁體中文
    • Help Translate
  • GitHub

›Recent Posts

Recent Posts

  • A story of exception encoding in BuckleScript
  • What's new in release 7.3
  • Generalized uncurry support in BuckleScript 7.3
  • Announcing bs-platform 7.2
  • Loading stdlib from memory

BuckleScript 3.1

May 21, 2018

List of changes here! Highlights:

Print Record Keys and Variant Tags

A picture's worth a thousand words:

BeforeAfter
debugger before debugger after

Please see Better Data Structures Printing (Debug Mode) for usage.

Even Better bs.deriving abstract

We've further polished our new way of binding to JS objects. The record fields of a bs.deriving abstract can now accept functions.

Pipe First Improvement

Pipe First now supports piping into variant tags!

let result = name |. preprocess |. Some
let result = name |. preprocess |. Some

We turn this into:

let result = Some(preprocess(name))
let result = Some(preprocess(name))

Js.Boolean Is Gone

Since BuckleScript 3.0, OCaml bool now compile to JS boolean. It was deprecated (all the boolean conversion functions became no-ops, with warnings during build), and now completely removed. No more need for the converter functions!

Recent Posts
  • Print Record Keys and Variant Tags
  • Even Better bs.deriving abstract
  • Pipe First Improvement
  • Js.Boolean Is Gone