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

Summary: [ES6] Convert normal function to arrow function and vice versa
Product: javascript Reporter: Christian Lenz <chrizzly>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

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.


Regards

Chris
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.