HaxeFoundation / haxe.org-comments

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

[haxe.org/manual] var #9

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

var - Haxe - The Cross-platform Toolkit

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

https://haxe.org/manual/expression-var.html

chrisvelevitch commented 5 years ago

It should be stated that the initial value of a variable without a value assignment could yield inconsistent results between target platforms because they may not have the same value for uninitialised variables and it is recommended that all variables be initialised before using.

Simn commented 5 years ago

The compiler checks the initialization state of variables and doesn't let you use them before they are initialized.