Introducing Rescript 12: Functional Programming for Web Applications
暫譯: 《Rescript 12 入門:Web 應用程式的函數式程式設計》

Yang, Danny

  • 出版商: Apress
  • 出版日期: 2026-09-26
  • 售價: $1,830
  • 貴賓價: 9.5 折 $1,738
  • 語言: 英文
  • 頁數: 215
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798868828232
  • ISBN-13: 9798868828232
  • 相關分類: Functional-programming
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Learn ReScript for building modern web applications. This concise guide uses clear examples and explanations to walk you through ReScript's core concepts while leveraging existing JavaScript experience.

This new edition incorporates the latest features from ReScript 11 & 12, including uncurried mode, updated record types, async/await support, and new syntaxes. You'll learn how to use features in ReScript that JavaScript lacks, such as type inference, null-safety, algebraic data types, pattern matching, and more. Along the way, you'll pick up functional programming concepts like immutability and higher-order functions. You'll also gain a sense of how ReScript works under the hood and how to leverage interoperability between ReScript and JavaScript.

Whether you're a web developer interested in dabbling with functional programming or you just want to learn how to write safer and cleaner code for web applications, this book is a great way for you to get started with ReScript.

What You Will Learn

  • Use ReScript to write clean, safe, and elegant software
  • Understand the features of ReScript that set it apart from JavaScript, such as type inference, null-safety, and algebraic data types
  • Explore functional programming concepts like immutability, higher order functions, and pattern matching.
  • Use popular JavaScript libraries and frameworks in your ReScript code and integrate ReScript code into JavaScript codebases

Who This Book Is for:

Web developers that want a strictly typed, safer alternative to JavaScript, as well as web developers interested in learning functional programming and leveraging the elegant and powerful functional features in ReScript.

商品描述(中文翻譯)

學習使用 ReScript 建構現代化 Web 應用程式。本精簡指南透過清楚的範例與說明,帶領您逐步了解 ReScript 的核心概念,同時運用您既有的 JavaScript 經驗。

本新版納入 ReScript 11 與 12 的最新功能,包括非柯里化模式(uncurried mode)、更新後的記錄型別(record types)、async/await 支援,以及新的語法。您將學會使用 ReScript 中 JavaScript 所缺乏的功能,例如型別推論(type inference)、null 安全性(null-safety)、代數資料型別(algebraic data types)、模式比對(pattern matching)等。在學習過程中,您也會接觸不可變性(immutability)與高階函式(higher-order functions)等函數式程式設計概念。此外,您將了解 ReScript 在底層的運作方式,以及如何運用 ReScript 與 JavaScript 之間的互通性。

無論您是想嘗試函數式程式設計的 Web 開發人員,或只是想學習如何為 Web 應用程式撰寫更安全、更簡潔的程式碼,本書都是開始學習 ReScript 的絕佳途徑。

您將學到什麼

• 使用 ReScript 撰寫整潔、安全且優雅的軟體
• 了解 ReScript 有別於 JavaScript 的功能,例如型別推論、null 安全性與代數資料型別
• 探索不可變性、高階函式與模式比對等函數式程式設計概念
• 在 ReScript 程式碼中使用熱門的 JavaScript 函式庫與框架,並將 ReScript 程式碼整合至 JavaScript 程式碼庫

本書適合哪些讀者

想要尋找具備嚴格型別、比 JavaScript 更安全替代方案的 Web 開發人員,以及有興趣學習函數式程式設計,並運用 ReScript 優雅且強大的函數式功能的 Web 開發人員。

作者簡介

Danny Yang is a software engineer at Meta working on Python type checking. He previously worked on WhatsApp and Facebook Messenger, whose web interface was written in ReScript. He blogs about compilers and data visualization, and enjoys spending time with his cat, Gully.

作者簡介(中文翻譯)

Danny Yang 是 Meta 的軟體工程師,負責 Python 型別檢查相關工作。他過去曾參與 WhatsApp 和 Facebook Messenger 的開發,這兩項產品的網頁介面都是以 ReScript 撰寫。他撰寫有關編譯器與資料視覺化的部落格文章,也喜歡和他的貓 Gully 共度時光。