DEV Community

Cover image for The Hascal Programming Language
bistcuite
bistcuite

Posted on

3 2

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!

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay