HaxeManual icon indicating copy to clipboard operation
HaxeManual copied to clipboard

Added overload and rest arguments section

Open MrcSnm opened this issue 2 years ago • 6 comments

Added function overload Added function rest arguments

MrcSnm avatar Oct 08 '21 16:10 MrcSnm

Everyone in the haxe discords is losing their shit because no one knew these were possible. Why was this not documented?

Geokureli avatar Oct 08 '21 16:10 Geokureli

Rest arguments section needs a link to or at least a mention of haxe.Rest API

RealyUniqueName avatar Oct 08 '21 19:10 RealyUniqueName

Rest arguments section needs a link to or at least a mention of haxe.Rest API

I added that and a notice that it is also possible to use spread operator too.

MrcSnm avatar Oct 09 '21 14:10 MrcSnm

@Simn is that enough for overloading?

RealyUniqueName avatar Oct 13 '21 07:10 RealyUniqueName

No, this needs a more elaborate introduction to clarify that we don't support full overloads and such things. The documentation for this has to be approached differently, so I suggest that we split up the PR accordingly.

Simn avatar Oct 13 '21 07:10 Simn

No, this needs a more elaborate introduction to clarify that we don't support full overloads and such things. The documentation for this has to be approached differently, so I suggest that we split up the PR accordingly.

I would split that PR if it is accepted for the rest arguments.

That apart, I think having to extern inline overload ( and that has bits of explanation about what each keyword is doing ) pretty surely means that overload is not fully supported.

MrcSnm avatar Oct 13 '21 11:10 MrcSnm