Hello World in Odin
Every programming journey starts with Hello World. Let’s write our first Odin program.
The Code
Create a file named hello.odin:
| |
Every programming journey starts with Hello World. Let’s write our first Odin program.
Create a file named hello.odin:
| |
Odin is statically and strongly typed — every variable has a fixed type determined at compile time. Odin’s declaration syntax reads left-to-right: name : type = value for variables, name :: …
Operators are the punctuation of a programming language – the symbols that combine values to compute new ones. Odin’s operator set will feel immediately familiar to C, Go, and Pascal …
Read more →Control flow determines the order in which statements execute – which branches run, how often code repeats, and when a loop stops. As an imperative, procedural language, Odin handles control …
Read more →In Odin, the callable unit of code is called a procedure (proc), not a “function.” This naming follows the Pascal and Oberon tradition that influenced the language, and it reflects …
Input and output are where a program meets the outside world – the terminal, the filesystem, and the user. Odin approaches I/O the way it approaches everything else: explicitly. There are no …
Read more →Showing 1–6 of 6 posts (page 1 of 1)