A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
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.
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.
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.
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.