Skip to content

[Feature] Implement recursive self-referencing functions #729

@Luna-Klatzer

Description

@Luna-Klatzer

Is there an existing proposal for this?

  • I have searched the existing issues

This feature does not exist in the latest version

  • I am using the latest version

Proposal

Implement the ability for a function to refer to itself in its body before the statement has finished processing. This means specifically loading the function into memory i.e. the symbol table before the body is analysed.

Important! This changes the order of internal analysis.

Exact behaviour / changes you want

  • Implement pre-loading of function symbol table entries.

Metadata

Metadata

Assignees

Labels

featureNew feature or enhancement

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions