Giter Club home page Giter Club logo

Comments (12)

Ocramius avatar Ocramius commented on July 17, 2024

Probably nitpicking, but where are the constants SC_HANDLE_CLOSURE_BINDINGS and various SC_* defined? Couldn't find them...

from super_closure.

jeremeamia avatar jeremeamia commented on July 17, 2024

Nitpicking is allowed. 😄 First make sure you are in the multiple-parsers branch. Then look in https://github.com/jeremeamia/super_closure/blob/multiple-parsers/src/functions.php. If you are up to doing a little code review, that would be great. I released this as an alpha, because I wanted to get some more eyes on it, and I'm expecting a little more churn before I finalize everything. If you see anything in the code that looks silly to you or that you have an alternate idea for, please let me know. (I still have some work to do on docblocks though, so don't worry about those)

from super_closure.

Ocramius avatar Ocramius commented on July 17, 2024

Ok - given that, could you please namespace them? :-) I'd actually like to see a PR for the 2.x branch - that would make reviewing much easier

from super_closure.

jeremeamia avatar jeremeamia commented on July 17, 2024

Good call, here you go: #11

from super_closure.

jeremeamia avatar jeremeamia commented on July 17, 2024

@Ocramius Thanks for all of the comments. I'm also wondering what you think from a high-level. It seems you are not a fan of the serialize_closure function, but do you have any other ideas about how to make it easy to use with the configuration options? Should I change my approach completely. What about the config options and what I selected as defaults? Do you prefer faster by default or more robust by default? Anything can change at this point still.

from super_closure.

Ocramius avatar Ocramius commented on July 17, 2024

@jeremeamia I'm fine with the function, since it doesn't cause side effects.

Robust by default is also a good way to go - speed is a thing that can be tweaked later on :-)

from super_closure.

GrahamCampbell avatar GrahamCampbell commented on July 17, 2024

@Ocramius I agree.

from super_closure.

GrahamCampbell avatar GrahamCampbell commented on July 17, 2024

Can we look to support nikic/php-parser 1.0 rather than 0.9? I know it's early days for it, but I recon it would be in a later stage of development by the time this repo hit's a stable 2.0.

from super_closure.

jeremeamia avatar jeremeamia commented on July 17, 2024

@GrahamCampbell I'll definitely check it out once it is closer to 1.0. I need to get the test suite built up for SuperClosure again first. After that, swapping in the newer PHPParser should be fairly easy.

from super_closure.

GrahamCampbell avatar GrahamCampbell commented on July 17, 2024

Awesome! Thanks for all your work on this superb package.

from super_closure.

GrahamCampbell avatar GrahamCampbell commented on July 17, 2024

I've sent a pull (#22) to upgrade us to php parser 1.0 since the api is now stable, and a stable tag will come in 2 week's time. See: nikic/PHP-Parser#125 (comment).

from super_closure.

jeremeamia avatar jeremeamia commented on July 17, 2024

The master branch now contains a new iteration on what I had with this branch.

from super_closure.

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.