HaxeFoundation / haxe.org

The haxe.org website
https://haxe.org
81 stars 94 forks source link

Change "taste of Haxe" example to use module-level fields (not a class) #435

Open uvtc opened 3 years ago

uvtc commented 3 years ago

A potential user's first glimpse of Haxe is that "Taste of Haxe" example on the homepage. Now that Haxe supports module-level fields, I think the code example would be more appealing if it did not use a class, but instead had a few variables, functions, and maybe even a main function or whatever is required such that the interested user could copy/paste it into a .haxe file and then (after installing Haxe) run it via haxe --interp taste.haxe or what have you.