Skip to content
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

Implement named args RFC #15968

Merged
merged 2 commits into from
Dec 12, 2017
Merged

Implement named args RFC #15968

merged 2 commits into from
Dec 12, 2017

Conversation

chancancode
Copy link
Member

@chancancode chancancode commented Dec 12, 2017

  • RFC Named Arguments Syntax ({{@foo}}) rfcs#276
    • RFC merged (not a blocker for this PR)
  • Implemented {{@foo}}
    • Reserved {{@args}}, {{@arguments}}
    • Reserved everything that does not start with a lowercase letter (such as @0, @1, @$, ...)
  • Has tests
    • Added a feature to the new test harness to run some tests only when a feature is enabled/disabled
  • Added a "TBD" deprecation feature that allows the code paths to be flagged without rolling the deprecations out to users immediately. This is an internal, undocumented feature that is not intended to be used by libraries and apps (yet, should go through an RFC at least), and the API/implementation are subject to change. (Add internal "TBD" deprecations feature #15970)
  • Flagged {{attrs.*}} for future deprecation (Add internal "TBD" deprecations feature #15970)

@chancancode chancancode force-pushed the named-args branch 3 times, most recently from 326b809 to ba3d5a9 Compare December 12, 2017 08:28
@chancancode chancancode changed the title [WIP] Implement named args RFC Implement named args RFC Dec 12, 2017
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just need to figure out the official path forward on the TBD stuff...

url: 'https://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
}
);
if (until !== 'TBD' || ENV._ENABLE_TBD_DEPRECATIONS === true) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just flagging this as needing a bit more discussion / thought before landing.

@chancancode
Copy link
Member Author

I removed the TBD/deprecations from this PR and opened #15970 for those

Also added a feature to the test harness for testing optional features
@rwjblue rwjblue merged commit f827a11 into master Dec 12, 2017
@rwjblue rwjblue deleted the named-args branch February 16, 2018 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants