HaxeFoundation / HaxeFoundation/haxe

[js] generate arrow functions for ES6 mode

Open
#10,352 1 comment 13 reactions 1 assignee Claimed by @nadako View on GitHub
enhancement platform-javascript
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

to make the output closer to the "native" ES6 and make the a bit code more readable we can generate native JS arrow functions for our anonymous functions.

in addition we could look into using js arrow function `this`-binding semantics to avoid extra tempvaring, but that's a nice-to-have
bonus

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.