This is the latest docs version
Quick Links
  • -Overview
  • -Language Features
  • -JS Interop
  • -Build System
Documentation
Language Manual
Reference for all language features
ReScript & React
First class bindings for ReactJS
GenType
Seamless TypeScript integration
Reanalyze
Dead Code & Termination analysis
Exploration
Packages
Explore third party libraries and bindings
Syntax Lookup
Discover all syntax constructs
APIPlaygroundBlogCommunity
  • Playground
  • Blog
  • Twitter
  • GitHub
  • Forum
May 21, 2018

Announcing BuckleScript 3.1

Hongbo Zhang
Compiler & Build System

Important: This is an archived blog post, kept for historical reasons. Please note that this information might be outdated.

Newest Changes

List of changes here! Highlights:

Print Record Keys and Variant Tags

A picture's worth a thousand words:

Before:

debugger before

After:

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!

RE
let result = name |. preprocess |. Some

We turn this into:

RE
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!

Want to read more?
Back to Overview

© 2024 The ReScript Project

Software and assets distribution powered by KeyCDN.

About
  • Community
  • ReScript Association
Find us on