Hello World in Gleam
Every programming journey starts with Hello World. Let’s write our first Gleam program.
The Code
Create a file named hello.gleam:
| |
Every programming journey starts with Hello World. Let’s write our first Gleam program.
Create a file named hello.gleam:
| |
Gleam is a statically typed functional language where every binding is immutable and the compiler infers types automatically. Unlike many languages, Gleam draws a hard line between integers and floats …
Read more →Operators are the building blocks of expressions. Gleam’s operator set reflects its functional, statically-typed nature: every operator has a single, well-defined type signature, and the …
Read more →Control flow decides which code runs and how often. Most imperative languages reach for if/else statements and for/while loops to do this. Gleam, being a small and consistent functional language, …
Functions are the heart of Gleam. As a functional language, Gleam treats functions as first-class values: you can store them in variables, pass them as arguments, and return them from other functions. …
Read more →Input and output are where a program meets the outside world. In Hello World you called io.println once; here we go further — formatting values for the console, writing to standard error, and reading …
Every programming language is, at its core, a written argument. An argument that the languages which came before failed at something important — something worth spending years of your life to fix. …
Read more →Showing 1–7 of 7 posts (page 1 of 1)