Giter VIP home page Giter VIP logo

Comments (5)

locks avatar locks commented on May 15, 2024 3

I like the sentiment, but I thought the new module shims were moving away from the Ember module being a grab bag. Can we expose them as static functions from the relevant packages instead? Example:

import { set, setProperties, toggleProperty }  from 'ember/object';
import { find, reduce }  from 'ember/array';

from rfcs.

mmun avatar mmun commented on May 15, 2024 1

I'm a big fan. Additionally I'd like to see the array methods accessible this way too, so that addon authors can more easily support apps that choose to disable prototype extensions. We should think about how they'd be exposed in the module shims as well.

from rfcs.

kellyselden avatar kellyselden commented on May 15, 2024

@locks That works too.

from rfcs.

locks avatar locks commented on May 15, 2024

set and setProperties can be imported from @ember/object.
Do you think it's still relevant to add toggleProperty, especially in light of Octane?

from rfcs.

sandstrom avatar sandstrom commented on May 15, 2024

I'm doing some issue gardening 🌱🌿 🌷 and came upon this issue. Since it's quite old I just wanted to ask if this is still relevant? If it isn't, maybe we can close this issue? My guess would be that incrementProperty and decrementProperty will eventually be deprecated.

By closing some old issues we reduce the list of open issues to a more manageable set.

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.