Hello World in Koka

Published on 28 April 2022 (Updated: 15 May 2023)

Welcome to the Hello World in Koka page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

fun main() 
{
    println("Hello, World!")
}

Hello World in Koka was written by:

This article was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

Now, let's see how we can print a simple "Hello World" in Koka.

Just like many other programming languages, the main function is the starting point of the code execution. To print, we use println, a built-in method that prints a given string or variable to the console.

Like many of the high-level language implementations in this series, this one wasn't too bad. Wanna try it out? Check out this online Koka editor.

How to Run the Solution

If you want to run Koka at your local machine, you can always install the Koka compiler and try the snippet locally. Then, run the following:

koka hello_world.kk

Also, you can check out the Koka the documentation.