DEV Community

Cover image for The Hascal Programming Language
bistcuite
bistcuite

Posted on

The Hascal Programming Language

Hascal is a general purpose and open source programming language designed to build optimal, maintainable, reliable and efficient software.

Features

  • Simple and easy to learn
  • Fast and powerful like C++
  • Inspired by Swift and Pascal
  • C++ on backend
  • Compatible with C\C++
  • Strongly typed

Examples

Hello World :

function main() : int {
    print("Hello World!")
    return 0
}
Enter fullscreen mode Exit fullscreen mode

Formatting Strings :

function main() : int {
    var name = ReadStr("Enter your name :")
    var fmt_str = format("Hi,{}",name)
    print(fmt_str)
    return 0
}
Enter fullscreen mode Exit fullscreen mode

HTTP Response :

use http

function main(): int {
    print(get("http://example.com"))
    return 0
}
Enter fullscreen mode Exit fullscreen mode

Our GitHub repository for more information

If you interested in Hascal, star hascal's repo on GitHub

Any contribution is welcome!

Top comments (0)