A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Hello World in Arkscript page! Here, you'll find the source code for this program as well as a description of how the program works.
(print "Hello, World!")
Hello World in Arkscript was written by:
This article was written by:
If you see anything you'd like to change or update, please consider contributing.
ArkScript programs do not require a main function as in C or C++. Every expression is executed, thus a single (print "Hello, World!") can write to the console.
A modular way to write the program could be as follows:
(let say (fun (to)
(print (str:format "Hello, {}!" to))))
(say "World")
(let say (fun (to), declares a function named say, taking a single argument, to.str:format: it takes a format string and values to be formatted
print to write the resulting string to the consolesay function with the argument World, printing Hello, World!Using the online playground:
(print "Hello, World!"), and paste it in the editorRun buttonUsing the interpreter:
file.ark with your code insidearkscript file.arkUsing Docker:
arkscript/nightly:latestfile.ark with your code insidedocker run --rm -v $(pwd):/tmp arkscript/nightly /tmp/file.ark