Git Product home page Git Product logo

hail-old's Introduction

a systems programming language which doesn't suck

documentation

installation

A guide for installing and setting up hail.

goals

The goals of hail as a programming language and open source project.

hail-old's People

Contributors

trimorphdev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hail-old's Issues

`unit` Statement

The unit statement declares the name of a Hail unit.

There has been multiple conceptualized uses for a Hail unit:

Using as a Namespace

// ./test_module.hl
unit my_module

MyStruct <- shared struct {
    item <- uint
}
// ./main.hl
unit main

import test_module

main :: routine() {
    val s = my_module::MyStruct::{ item <- 42 }
}

No unit Keyword

// ./test_module.hl

MyStruct <- shared struct {
    item <- uint
}
// ./main.hl

import { MyStruct } from test_module

main :: routine() {
    val s = MyStruct::{ item <- 42 }
}

Automatic Semicolon Insertion

The language should have automatic semicolon insertion, similar to that of Go's.

let my_variable = 0   // can end here, insert semicolon
let my_variable = 1 + // can't end here, don't insert semicolon
    2                 // can end here, insert semicolon

Automatic semicolon insertion occurs during lexing/tokenizing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.