-
-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make fn built-in in strict-mode #998
Conversation
Co-authored-by: MrChocolatine <47531779+MrChocolatine@users.noreply.github.com>
Co-authored-by: MrChocolatine <47531779+MrChocolatine@users.noreply.github.com>
contrary point of view: if the code editor will be able to suggest the import for that said, it does seem useful to have a prologue (like 👍🏿 from me |
I also 👍 the proposed alternative of a prolog of some kind, and if not no changes at all: Coming from a ruby background I find 'magic' (implicit and untrackable injections of any object) exhausting, especially while debugging. Not loving magic anymore meant JS imports where a blessing to me. Not that to a user it has negative value (sugar feels good), but that would be an overhead to smo who wants to learn ember. Or to a rare ember user debugging / accessing a side project. A prologue would be a good compromise. |
anyone can more or less do this themselves in userspace via this technique: #946 (comment)
has anyone ever needed to debug inside We don't want to have folks importing |
Very good points, I see it clearer now, and you are right. That means we have 2 kinds of helpers, those who are 'pre-loaded' and those who need an import from the user. It could be beneficial to have an explicit note / list / remarks about that in the documentation ? But that's out of this PR scope. |
Makes sense to me. |
RFC Review (1) are in favour of this. |
Co-authored-by: Aaron Chambers <aaron.chambers@hey.com>
## Drawbacks | ||
|
||
People may not know where `fn` is defined. | ||
- counterpoint: do they need to?, we are defining a lanugage, trying to make it ergonomic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(small typo)
Propose making
(fn)
a built in helperRendered
Summary
Today, we need
This should be built in, and not require an import.
An FCP is required before merging this PR to advance to Accepted.
Upon merging this PR, automation will open a draft PR for this RFC to move to the Ready for Released Stage.
Exploring Stage Description
This stage is entered when the Ember team believes the concept described in the RFC should be pursued, but the RFC may still need some more work, discussion, answers to open questions, and/or a champion before it can move to the next stage.
An RFC is moved into Exploring with consensus of the relevant teams. The relevant team expects to spend time helping to refine the proposal. The RFC remains a PR and will have an
Exploring
label applied.An Exploring RFC that is successfully completed can move to Accepted with an FCP is required as in the existing process. It may also be moved to Closed with an FCP.
Accepted Stage Description
To move into the "accepted stage" the RFC must have complete prose and have successfully passed through an "FCP to Accept" period in which the community has weighed in and consensus has been achieved on the direction. The relevant teams believe that the proposal is well-specified and ready for implementation. The RFC has a champion within one of the relevant teams.
If there are unanswered questions, we have outlined them and expect that they will be answered before Ready for Release.
When the RFC is accepted, the PR will be merged, and automation will open a new PR to move the RFC to the Ready for Release stage. That PR should be used to track implementation progress and gain consensus to move to the next stage.
Checklist to move to Exploring
S-Proposed
is removed from the PR and the labelS-Exploring
is added.Checklist to move to Accepted
Final Comment Period
label has been added to start the FCP