- Learn Type:Driven Development
- Yawar Amin Kamon Ayeva
- 209字
- 2021-07-02 14:41:24
ReasonML
We're going to explore type-driven development using ReasonML (https://reasonml.github.io/). Reason is a JavaScript-like syntax and is also a set of tools for OCaml (https://ocaml.org/). OCaml is a mature statically typed functional programming language with excellent support for object-oriented and modular programming.
We're going to write Reason code and compile it to JavaScript using the BuckleScript compiler (https://bucklescript.github.io/). BuckleScript takes input from Reason code and outputs essentially a simple subset of ES5 (that is, no ES2015-style classes, no arrow functions, and so on). This will allow us to write strongly statically typed code and see what the output JavaScript looks like with all the types stripped away.
The Reason toolkit currently consists of:
- A code formatting and syntax translation tool, refmt
- An interactive code evaluation environment, rtop
- A build manager for native-compilation projects (we won't need this one for this book), rebuild
- A tool that provides intellisense abilities to editors, ocamlmerlin-reason
These tools work together to provide a minimal, yet powerful, development experience. Together with a good editor (we recommend Visual Studio Code), they cover most of your day-to-day development needs.
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- What's New in TensorFlow 2.0
- C++ Builder 6.0下OpenGL編程技術
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- Java開發入行真功夫
- Flash CS6中文版應用教程(第三版)
- STM32F0實戰:基于HAL庫開發
- The HTML and CSS Workshop
- SQL Server 2016數據庫應用與開發
- Julia高性能科學計算(第2版)
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- C++17 By Example
- ArcPy and ArcGIS(Second Edition)
- LiveCode Mobile Development Hotshot
- 小學生C++編程課堂(新手篇)