Git Product home page Git Product logo

Comments (5)

lstrojny avatar lstrojny commented on June 30, 2024 2

Will be addressed with 2.0

from functional-php.

lstrojny avatar lstrojny commented on June 30, 2024

Indeed, that was a mistake when implementing it but it’s probably too late to fix that now in a sane way. The only way I would see is adding a function with a different name to do the right thing.

from functional-php.

cullylarson avatar cullylarson commented on June 30, 2024

Ah, yeah, that's a tough one. A good solution might be to just be very explicit about that functionality in the documentation. I only noticed it was happening after spending some time trying to debug a function that was using compose, and then looking at the code for compose. I actually had to go back and change all of my other uses of compose.

from functional-php.

MarcoWorms avatar MarcoWorms commented on June 30, 2024

Is it too harmful to break the current interface and make compose do right-to-left composition which would be the expected behaviour and add a pipe function that does the current left-to-right composition? Ramda (https://github.com/ramda/ramda) does it this way and it seems really sane.

from functional-php.

lstrojny avatar lstrojny commented on June 30, 2024

@MarcoWorms I wouldn’t wanna do this for 1.x but I could very well imagine doing this for 2.x.

from functional-php.

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.