Giter Club home page Giter Club logo

Comments (4)

shivanshtalwar0 avatar shivanshtalwar0 commented on July 28, 2024

this isn't that big library and earlier version of this library was written with export and imports but that architecture of api split across multiple files was having serious drawbacks of private properties non accessible in composition of instances across different classes in different files which made me rewrite it using part of and in my opinion its not going away any time soon since many initial libraries still follow this architecture and for a good reason, if in future they deprecate part of then they will surely introduce alternative keyword something like friend of and then we will migrate the code accordingly.

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on July 28, 2024

for more context look at https://github.com/flutterjanus/flutter_janus_client/releases/tag/2.0.0-beta this release was using exports and imports instead of part of and drawback was in every class properties which are not private are also accessible in ide (intelisense) which end user would not be happy about.

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on July 28, 2024

with part of we have better control at what we expose as an api.

from flutter_janus_client.

UserSense avatar UserSense commented on July 28, 2024

Valid arguments to leave it as is.

from flutter_janus_client.

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.