cptx032 / cptx032/cee

Check the possibility of using goto statements to properly simulate lambdas

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The bug advantage on this is that will be possible to use lambda as real lambda from other languages: to access variables from inside the context. Today the following example will generate an error because the lambda function is acessing a local variable from inside the context:

```c
@fn main() {
int age = 20
filter(@fn () {
printf("%d\n", age)
})
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.