-
Notifications
You must be signed in to change notification settings - Fork 130
Warn, with detail, against certain --harmony flags? #242
Comments
+1 for more explicit documentation. IMO that's exactly the kind of information I'd want to find in the docs if I was exploring io.js as a way to explore ES6 feature. |
The lenient and widespread usage of harmony flags on 0.11 definitely passed a message of approval, which is perfectly understandable due to the ultra slow adoption of newer V8 versions. However, I'm ambivalent on this, so I'll try bring to the discussion some considerations of this approach:
So, in general, if we can convey the right message regarding generic use of harmony flags and somehow list "ready" feature ahead of time in a way that does not distort that message (listing this content in a less prominent section?), I'm all for it. |
The goal should be to discourage use of --harmony features in general---none of them are safe to use. Some of them are more unsafe than others though, and if those ones are also popular, I think it'd be good to specifically warn people against them. |
This is an issue that can be handled by the Docs WG. I've marked it as invalid and docs to ensure its responsibility is handed to the Docs WG. If you want to discuss this issue, see nodejs/docs#10. |
Just fyi, rest parameters shipped this morning, not too different from how they were before. We still want to improve the perf to at least match _.restParams, though. So I guess you can probably consider those acceptably safe. (Unless of course we need to revert then for one reason or another) |
One of the most consistent topics I see in IRC is people trying to use --harmony-arrow-functions. I continually need to warn people away from them. I've also seen people try to use --harmony-proxies and --harmony-modules. All of these features are dramatically non-spec-compliant. (Whereas, other non-shipping features like --harmony_arrays or --harmony_unicode are fine, not to mention the staged features.)
I wonder if we should include a warning on the ES6 page specifically against these three features, explaining what's broken with each of them, so that people know what they're getting in to?
I feel like there's still some cleanup to do in peoples' mindset here. For so long v0.11 shipped with almost-spec-compliant generators, and people thought slapping on --harmony_generators was no big deal, which was mostly true. But that seems to have trained people to think --harmony_arrow_functions or similar are also no big deal, which is wrong.
The text was updated successfully, but these errors were encountered: