HaxeFoundation / HaxeManual

The official Haxe manual
https://haxe.org/manual/
Creative Commons Attribution 4.0 International
218 stars 154 forks source link

Array initialization example #495

Closed Pidroh closed 3 years ago

Pidroh commented 3 years ago

Added an example to array initialization since I felt like the manual was unclear

Simn commented 3 years ago

I'm fine with that, but let's please lose the : Array type-hint because that's not very haxe-idomatic.

Pidroh commented 3 years ago

@Simn This is what you meant? I'm quite a beginner at Haxe.

Simn commented 3 years ago

Yes, but please do it for both lines!

Pidroh commented 3 years ago

Oh, that was dumb. Done!

Simn commented 3 years ago

Thanks!

The fact that b appears before a is pretty strange, but I feel rebellious today so I'll merge it anyway.