You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ ] One potential approach to implement this is to do a pass before we start visiting a class and inject synthetic methods for these lambda expressions (this is similar to the lowering concept in Roslyn). - [ ] For readability it is interesting to add these synthetic methods in the beginning of the type (this ensures that the Cecilified code is more easy to read since there's no mixed instructions)
The text was updated successfully, but these errors were encountered:
Support lambda expressions that does not capture any context.
One open question is how to handle unsupported scenario:
I am leaning to 1
Reasoning
Non-capturing lambdas can be implemented by adding a private, static method with an expression body exactly as the body of the lambda expression.
For instance, the example above would be equivalent to:
- [ ] One potential approach to implement this is to do a pass before we start visiting a class and inject synthetic methods for these lambda expressions (this is similar to thelowering
concept in Roslyn).- [ ] For readability it is interesting to add these synthetic methods in the beginning of the type (this ensures that the Cecilified code is more easy to read since there's no mixed instructions)The text was updated successfully, but these errors were encountered: