Название: Introducing ReScript: Functional Programming for Web Applications Автор: Danny Yang Издательство: Apress Год: 2023 Страниц: 281 Язык: английский Формат: pdf (true), epub (true), mobi (true), azw3 Размер: 10.1 MB
This book serves as a succinct guide on ReScript, a functional language for building web applications. Using examples of ReScript language features along with explanations of fundamental concepts in functional programming, this book will show web developers with a background in jаvascript how to effectively use ReScript to its full potential.
In Introducing ReScript, you'll learn how to use features in ReScript that jаvascript 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 jаvascript.
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.
ReScript is a language designed for writing web applications. It brings a lot to the table: static typechecking, a strong type system, and powerful language features that will change the way you program. There are a number of other languages and tools that offer static typechecking for web applications, but ReScript has several key advantages over its competitors. As an example, let’s look at the benefits ReScript has compared with another popular jаvascript alternative, TypeScript: ReScript is safer – Unlike ReScript’s battle-tested and sound type system, TypeScript’s type system is unsound, so it is still possible to have runtime type errors in a valid TypeScript program. ReScript is faster – ReScript’s compiler is much faster than TypeScript’s compiler, allowing for a smoother development experience when working in large code bases. ReScript has the following key differences from its predecessors: ReScript has different syntax and features. While it looks and feels more like jаvascript, ReScript is still based on the battle-tested compiler and type system as Reason and OCaml, so it has the same type safety benefits as its predecessors. ReScript can only be compiled to jаvascript.
What You Will Learn Use ReScript to write clean, safe, and elegant software Understand the features of ReScript that set it apart from jаvascript, such as type inference, null-safety, and algebraic data types Explore functional programming concepts like immutabhigher-orderr order functions, and pattern matching Use popular jаvascript libraries and frameworks in your ReScript code and integrate ReScript code into jаvascript codebases
Who This Book Is For Web developers that want a strictly typed, safer alternative to jаvascript, as well as web developers interested in learning functional programming and leveraging the elegant and powerful functional features in ReScript.
Скачать Introducing ReScript: Functional Programming for Web Applications