HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[code.haxe.org] Beginner - Hello world #98

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Hello world - Beginner - Haxe programming language cookbook

This tutorial demonstrates how to write and compile a Hello World Haxe program. It explains the involved file-format (.hx) and gives a basic explanation of what the Haxe Compiler does with them.

https://code.haxe.org/category/beginner/hello-world.html

chikega commented 2 years ago

Just an alternate method that may look more familiar to those coming from C, C++, Java ... Sys.println will print a new line as where Sys.print will not

class HelloWorld {
  static public function main():Void {
      Sys.println("Hello World");
  }
}