Skip to content
@heliumlang

Helium Language

A modern scripting language.

Helium

Modern scripting language

Helium is a simple scripting language that ensures safety, correctness and ease of use.

mod main

struct Point {
    pub int x
    pub int y
}

fn [a Point] add(Point b) Point {
    return new Point(x: a.x + b.x, y: a.y + b.y)
}

struct Person {
    pub string name
    pub string surname
    pub string fullname

    init(string name, string surname) {
        @name = name
        @surname = surname
        @fullname = name + ' ' + surname
    }
}

fn main() {
    p1, p2 := new Point(x: 5, y: 2), new Point(x: 3, y: 1)
    p3 := p1.add(p2)

    person := new Person("John", "Doe")
    println(person.fullname)
}

Pinned Loading

  1. helium helium Public

    Source of helium

    Go 5 1

  2. examples examples Public

    Official examples for the helium programming language

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…