Napačna izbira? Nič za to! Ponujamo možnost vračila v 30 dneh
Z darilnim bonom ne morete zgrešiti. Obdarovanec lahko v zameno za darilni bon izbere karkoli iz naše ponudbe.
30 dni za vračilo blaga
Ever find yourself writing the same to_string function for every new record type you create? You add a new field to your type, but you forget to update your printer, and suddenly your debug logs are incomplete. It's a frustrating and needless source of bugs.
What if you could just... not?
What if you could "teach" the OCaml compiler how to print your types for you? Imagine just adding one line, [@@deriving print], and having a perfect, up-to-date printer function generated automatically. What if you could invent your own syntax, like [%html< div >...< /div >], and have it transformed into safe, type-checked function calls?
This isn't magic. This is metaprogramming, and this book will show you exactly how to do it.
What's insideThis is a project-based guide, and I will walk you through everything, with no code left out. You will learn:
This book is written for the intermediate OCaml programmer.
If you are comfortable with OCaml's syntax, types, and build system, but you want to unlock a new level of power, this book is for you. It's for anyone who wants to build more powerful libraries, create safer APIs, or simply automate the boring parts of programming.
Don't just use OCaml. It's time to extend it.
Stop writing repetitive code and start building the tools that write it for you. This guide provides the knowledge and the code to do it safely and effectively.
Get your copy today and learn to make the OCaml compiler work for you.