odin is an actively used programming language created in 2016.

4Years Old 955Users ?Jobs

Example code from the web:

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);
}

Last updated August 9th, 2020

Edit odin on GitHub