HaxeFoundation / HaxeManual

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

Array initialization example #495

Closed Pidroh closed 2 years ago

Pidroh commented 2 years ago

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

Simn commented 2 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 2 years ago

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

Simn commented 2 years ago

Yes, but please do it for both lines!

Pidroh commented 2 years ago

Oh, that was dumb. Done!

Simn commented 2 years ago

Thanks!

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