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

Feature proposal: Reflection #104

Open

Description

@Zffu

Proposal Id: reflection

This proposal introduces reflection to Quickfall. Reflection will be used at compile time to obtain information about types.

Furthermore, the proposal introduces the following compile time operations:

  • types<bound or trait>: Gets every type with the bound or trait
  • types<>: Gets every type registered in the current global scope
  • traits<type>: Gets the traits of the given type
  • bounds<type>: Gets the bounds of the given type
  • methods<type>: Gets every method of the given type if applicable, else error
  • fields<type>: Gets every field of the given type if applicable else error.
  • reflectfor: A new kind of for loop made to iterate trough reflection data
  • name<object>: Makes a static string of the reflection object's name

Every single macro will run at compile time and no actual type info will be usable at runtime besides the object names. This is to guarantee a clean Reflection and healthy performance whilst using it.

Activity

  1. self-assigned this
    on Apr 30, 2026
  2. added
    rust
    on Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ASTLLVM IRLSPastoirbreakinglexerrust

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions