Code Monkey home page Code Monkey logo

Comments (3)

zachallaun avatar zachallaun commented on May 28, 2024

Alternatively: Lenses and Combinator could become private modules, with their functions being re-exported by the Pathex module. This means the behavior of use Pathex would not need to change and documentation would be consolidated.

from pathex.

zachallaun avatar zachallaun commented on May 28, 2024

Updated the title to something that better represents the desired outcome.

from pathex.

hissssst avatar hissssst commented on May 28, 2024

Yeah, I've thought about this and I came up with different approaches for this

  1. Leave it all as it is. It is simple, explicit and it reflects how people use the library.
    For 90% use cases, you just import Pathex. For 9% of use cases you also import Pathex.Lenses. And only for 1% of use cases import Pathex.Combinator. And even in most cases, one could just call functions from Pathex.Lenses or Pathex.Combinator directly

  2. Move everything to Pathex and suggest using import Pathex.
    This would add a lot of complex functions with very generic names. Using only option would be even more verbose

  3. Move everything to use Pathex has the same problem as above

  4. use Pathex, lenses: true, combinator: true. Nice, but this saves only a few characters and is less explicit

from pathex.

Related Issues (12)

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.