Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Add functions as a first-class type #2

Description

@python-processing-unit

Feature proposal

Add support for functions as a first-class type in ASM-Lang. This would allow functions to be assigned to variables, stored in data structures, passed as arguments, and returned from other functions.

Motivation

  • Increases language expressiveness and flexibility.
  • Enables common functional programming patterns.
  • Makes it easier to write concise, readable, and modular code.

Expected behavior

  • Functions can be treated as values throughout the ASM-Lang interpreter.
  • Syntax and semantics should be clearly documented and tested.
  • Example usage and reference changes included in documentation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions