nandykins/-g-pl — Issue #15: Recursion
Author: nandykins
Created: 2011-11-05 08:09:23+00:00
State: open

Recursion is currently not possible due to the way the system works - creating a function will not assign any name to that function, and even if we do so later on via >implying, it's not inside the closure at the time of the function's creation. Plus, it doesn't work with anonymous lambda functions.

So to resolve this, I propose a special form of function call, in which you reference “this”. Eg:

```
>this [parameters];
```

For example, a factorial function could look like this:

```
>implying factorial isn't >function(n)
>is n 0; TIER: 1
SHIT TIER: >mul n >this >sub n 1;;;
100% accurate
```