Giter Site home page Giter Site logo

Deprecate delegates about quiver-dart HOT 4 CLOSED

google avatar google commented on August 17, 2024
Deprecate delegates

from quiver-dart.

Comments (4)

justinfagnani avatar justinfagnani commented on August 17, 2024

There's a critical difference, is that the package:collection classes don't allow you to change the wrapped instance after construction. IMO, this eliminates several useful use cases where you need the wrapping for indirection.

from quiver-dart.

kevmoo avatar kevmoo commented on August 17, 2024

This is where I scream for 'protection'. Having the wrapped item exposed bothers me.

Although, in the case where it's exposed as the base type (List, Map, etc) maybe it doesn't matter.

from quiver-dart.

justinfagnani avatar justinfagnani commented on August 17, 2024

Yes, unless someone knows that the collection is a Delegating* they won't see the property for the wrapped item. If you really want protected you can always play tricks with passing a closure in the constructor, but that starts to sound convoluted.

from quiver-dart.

kevmoo avatar kevmoo commented on August 17, 2024

Got it. I'll close. Colliding names is a bit annoying...but not worth pushing now.

from quiver-dart.

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.