haxe.org icon indicating copy to clipboard operation
haxe.org copied to clipboard

More details for language intro page

Open uvtc opened this issue 5 years ago • 4 comments

I think the language introduction could use more language details, maybe a bullet list, to quickly give the reader a better idea of what kind of language Haxe is.

Currently it says that it's

  • modern,
  • very high-level,
  • strictly typed, and
  • easy to learn.

What else can we add to expand that? How about:

  • general-purpose
  • compiled (to multiple language targets/platforms, including VM bytecode)
  • strictly typed, with type-inferencing
  • lexically-scoped
  • most (all?) statements are expressions {is that correct?}
  • familiar syntax (similar to Java, C++, AS3, etc.)
  • Exceptions for error handling
  • standard library includes target-platform -specific modules, in addition to modules common to all targets
  • Haxe the language is purposely kept fairly simple, elegant, and practical to accommodate compilation to the large number of different target platforms

Do those sound accurate?

Maybe something about supporting OO? Functional programming?

uvtc avatar Sep 28 '18 16:09 uvtc

Thanks this is helpful info

markknol avatar Sep 28 '18 19:09 markknol

Hi Mark. You're welcome, but maybe I wasn't clear: I'd like to create a PR, but wanted to first confirm that the points I wrote above are correct, and also ask if anyone had any additional ones to add or clarifications to make. I don't yet know Haxe very well at all, certainly not well enough to write the bullet list myself without input. :)

uvtc avatar Sep 28 '18 19:09 uvtc

I think the language intro is the right place to give prospective new users a 10-thousand-meter overview of what the Haxe language is all about, providing a context for moving forward.

uvtc avatar Sep 28 '18 19:09 uvtc

Took a shot at it with PR #345 .

uvtc avatar Sep 28 '18 23:09 uvtc