-
-
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
Declare Ember.defineProperty as public? #350
Comments
I generally agree with Ed’s points (over in the deprecation app issue), but frankly they do not cover all of the cases where However, |
would that require a full-blown RFC process? |
IMHO, no (it would just require a PR to change the docs from I'll try to take this to the next core team meeting to confirm we have consensus... |
I defer to @rwjblue on this. In general it would be nice to flag APIs like this as “advanced” so that newbies don’t encounter them in the normal docs. |
While the wind seems to be blowing towards static/explicit typing, I hope that Ember continues to provide "sharp knives" like this to enable meta-programming and other dynamic approaches. |
I am opening this here for discussion, as I have seen confusing statements (to me at least) in other repos/issues, so would like to clarify this here in a central place...
Problem
Ember.defineProperty
is declared private, although it seems to be widely used in the wild (see below). IMHO there is at least one valid use case for it, when the dependent keys of a CP are not known it advance.Status quo
defineProperty
. Admittedly that also includes usage ofObject.defineProperty
, but a quick scan suggested a significant use ofEmber.defineProperty
as well!Opinions
/cc @jenweber @ef4 @rwjblue
The text was updated successfully, but these errors were encountered: