Hello World in Crystal
Every programming journey starts with Hello World. Let’s write our first Crystal program.
The Code
Create a file named hello.cr:
| |
That’s it! If you know …
Every programming journey starts with Hello World. Let’s write our first Crystal program.
Create a file named hello.cr:
| |
That’s it! If you know …
Crystal’s type system is one of its most distinctive features: statically typed for safety and performance, yet rarely requiring explicit type annotations. The compiler infers types through …
Read more →Operators are the verbs of a programming language - they tell the compiler how to combine, compare, and transform values. In Crystal, operators look familiar to anyone who has used Ruby, but they …
Read more →Control flow determines the order in which your program executes statements - which branches it takes and how often it repeats work. Crystal inherits Ruby’s expressive, readable approach to …
Read more →Functions are how you package logic into reusable, named units. In Crystal, the keyword is def, and the syntax will feel instantly familiar to anyone who has written Ruby. But Crystal is a compiled, …
Showing 1–5 of 5 posts (page 1 of 1)