-
Notifications
You must be signed in to change notification settings - Fork 36
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
Added support for "use" keyword in closures #69
Conversation
Codecov Report
@@ Coverage Diff @@
## development #69 +/- ##
===============================================
+ Coverage 32.34% 35.66% +3.31%
===============================================
Files 5 5
Lines 4399 4436 +37
===============================================
+ Hits 1423 1582 +159
+ Misses 2976 2854 -122
Continue to review full report at Codecov.
|
As far as i know we currently don't support references, does it mean that in related zephir issue we gonna implement it as well? |
@Jurigag It is a possibility for my future plans. n.b. The language scanner and parser have supported this syntactic structure since the very first days. So I don't introduced a brand new grammar |
Example of supported forms:
An empty closure with "use" keyword
A closure with "use" keyword and body
A closure with params, "use" keyword and empty body
A closure with params, with "use" keyword and non empty body
A complex example with "use" keyword
Refs:
use
keyword in Closures zephir#1848/cc @phalcon/zephir-team