COMMUNITY

How to write function parms with field name for python target?

How to write function parms with field name?

etc:

  scene.importGltf(filepath=path) //work
 
  scene.importGltf(path);//error,cant' compile.

how to write something like that in Haxe ? I know there is a way use Syntax.code

        scene.importGltf(Syntax.code('filepath={0}', path));//but it's ugly..

are there any other way ?