Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFR]Support `use` keyword in Closures #1848

Closed
dreamsxin opened this issue Apr 21, 2019 · 5 comments

Comments

Projects
None yet
3 participants
@dreamsxin
Copy link
Member

commented Apr 21, 2019

Example

$func = function() use ($a) {
    return $a + 1;
}

Here $a becomes a local static variable of function $func.

@sergeyklay Who can implementation parse code.

@niden

This comment has been minimized.

Copy link
Member

commented Apr 21, 2019

This is definitely needed

@sergeyklay

This comment has been minimized.

Copy link
Member

commented Apr 21, 2019

@dreamsxin I'll try to implement parser

@sergeyklay sergeyklay added the nfr label Apr 21, 2019

@sergeyklay

This comment has been minimized.

Copy link
Member

commented Apr 23, 2019

Refs: #888

sergeyklay added a commit to phalcon/php-zephir-parser that referenced this issue Apr 24, 2019

sergeyklay added a commit to phalcon/php-zephir-parser that referenced this issue Apr 24, 2019

sergeyklay added a commit to phalcon/php-zephir-parser that referenced this issue Apr 24, 2019

sergeyklay added a commit to phalcon/php-zephir-parser that referenced this issue Apr 24, 2019

sergeyklay added a commit to phalcon/php-zephir-parser that referenced this issue Apr 24, 2019

@sergeyklay

This comment has been minimized.

Copy link
Member

commented Apr 24, 2019

@dreamsxin

This comment has been minimized.

Copy link
Member Author

commented Apr 25, 2019

@sergeyklay Please help optimize code in dreamsxin@404130d

@dreamsxin dreamsxin closed this in 8341fdf Apr 30, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.