Table of Contents
Preface
Part 1: Getting Started
Chapter 1: An Introduction to Crystal
Technical requirements
A bit of history
Exploring Crystal's expressiveness
Crystal programs are also FAST
A web server comparison
Setting up the environment
Creating our first program
Creating an executable
Summary
Chapter 2: Basic Semantics and Features of Crystal
Technical requirements
Values and expressions
Numbers
The primitive constants – true, false, and nil
String and Char
Ranges
Enums and symbols
Controlling the execution flow with conditionals
if and unless
case
while and until loops
Exploring the type system
Experimenting with the crystal play command
Organizing your code in methods
Adding type restrictions
Default values
Named parameters
External ...
Get Crystal Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.