This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262789 - [ES6] Convert normal function to arrow function and vice versa
Summary: [ES6] Convert normal function to arrow function and vice versa
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2016-07-13 08:58 UTC by Christian Lenz
Modified: 2016-07-13 10:00 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2016-07-13 08:58:11 UTC
It would be very nice if we can have more editor hints in JS for example a hint to convert a function into a arrow function and vice versa.


Comment 1 Petr Pisl 2016-07-13 09:21:29 UTC
Do you mean in all situations or in certain cases?
Comment 2 Christian Lenz 2016-07-13 10:00:21 UTC
Good question and I thought about that too, maybe only in normal functions? As for callbacks

var t = function(() => 3);

or here

[].map(item => console.log(item));

not in each case. I think it could be possible in each case and you as a developer can choose whether it makes sense or not.