GithubHelp home page GithubHelp logo

Comments (7)

rlivsey avatar rlivsey commented on May 16, 2024

Previous discussion indicated that this was because of support for ES3 browsers. Now that Ember 2.0 is dropping support for IE8 then this should be possible.

from rfcs.

mmun avatar mmun commented on May 16, 2024

Any changes these functions will likely break a lot of apps :( It would require mass consensus to change.

from rfcs.

stefanpenner avatar stefanpenner commented on May 16, 2024

Although I agree this would be nice I think this should be user land or addon concern. What defines an empty object is tricky (although I'm sure consensus can be reached) but changes to these core methods would provide dubious value as existing apps do depend on the current semantics.

I suspect if we where to write isEmpty today it would include a reasonable semantic for this

from rfcs.

mmun avatar mmun commented on May 16, 2024

An addon is a good solution.

from rfcs.

Panman82 avatar Panman82 commented on May 16, 2024

What about making an addon to "opt-in", then make the switch at 3.0? Then add a depreciation (sigh) about installing the addon to silence the depreciation, when the developer ensures their code will handle the change properly.

from rfcs.

stefanpenner avatar stefanpenner commented on May 16, 2024

@Panman8201 i don't think making the change is worth-while, isEmpty has semantics, changing them is a-bit of a trap. An addon providing some variation of it, sounds like the best path.

Going to close this as working as intended.

from rfcs.

benoror avatar benoror commented on May 16, 2024

Just created a hbs helper for this particular use-case: https://gist.github.com/benoror/d9a3fb6f4892897af390bcb9d8cbeddf

from rfcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.