💾 Archived View for auragem.space › odin captured on 2022-06-03 at 23:02:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

Home

Documentation

Community

Download

Github

The Odin Programming Language

The Odin programming language is designed with the intent of creating an alternative to C with the following goals:

Example Code

package main

import "core:fmt"

main :: proc() {
    program := "+ + * 😃 - /";
    accumulator := 0;

    for token in program {
    	switch token {
    	case '+': accumulator += 1;
    	case '-': accumulator -= 1;
    	case '*': accumulator *= 2;
    	case '/': accumulator /= 2;
    	case '😃': accumulator *= accumulator;
    	case: // Ignore everything else
    	}
    }

    fmt.printf("The program \"%s\" calculates the value %d\n",
               program, accumulator);
}

Language Features

Financial Support