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
Closed

[NFR]Support use keyword in Closures #1848

dreamsxin opened this issue Apr 21, 2019 · 5 comments
Labels
nfr New Feature Request

Comments

@dreamsxin
Copy link
Contributor

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
Copy link
Contributor

niden commented Apr 21, 2019

This is definitely needed

@sergeyklay
Copy link
Contributor

@dreamsxin I'll try to implement parser

@sergeyklay sergeyklay added the nfr New Feature Request label Apr 21, 2019
@sergeyklay
Copy link
Contributor

Refs: #888

sergeyklay added a commit to zephir-lang/php-zephir-parser that referenced this issue Apr 24, 2019
sergeyklay added a commit to zephir-lang/php-zephir-parser that referenced this issue Apr 24, 2019
sergeyklay added a commit to zephir-lang/php-zephir-parser that referenced this issue Apr 24, 2019
sergeyklay added a commit to zephir-lang/php-zephir-parser that referenced this issue Apr 24, 2019
sergeyklay added a commit to zephir-lang/php-zephir-parser that referenced this issue Apr 24, 2019
@sergeyklay
Copy link
Contributor

@dreamsxin Parser done zephir-lang/php-zephir-parser#69

@dreamsxin
Copy link
Contributor Author

@sergeyklay Please help optimize code in dreamsxin@404130d

dreamsxin added a commit to dreamsxin/zephir that referenced this issue Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nfr New Feature Request
Projects
None yet
Development

No branches or pull requests

3 participants