Skip to content

experimental macro module require#1096

Closed
Frityet wants to merge 1 commit intoteal-language:mainfrom
Frityet:macro-mods
Closed

experimental macro module require#1096
Frityet wants to merge 1 commit intoteal-language:mainfrom
Frityet:macro-mods

Conversation

@Frityet
Copy link
Collaborator

@Frityet Frityet commented Feb 19, 2026

No description provided.

@github-actions
Copy link

Teal Playground URL: https://1096--teal-playground-preview.netlify.app

@hishamhm
Copy link
Member

@Frityet I think the <comptime> stuff is more controversial — a comptime language subset a la Zig or const fn in Rust is a big topic, and would take way more design on its own than we would need for macro-require.

I think a simpler local macro foo = require("foo") that would load a foo.m.tl macro file would be much simpler to review and integrate as a new experimental feature. Could you rework this to include just the "minimum viable product" for macro-require?

@Frityet
Copy link
Collaborator Author

Frityet commented Mar 12, 2026

@Frityet I think the <comptime> stuff is more controversial — a comptime language subset a la Zig or const fn in Rust is a big topic, and would take way more design on its own than we would need for macro-require.

I think a simpler local macro foo = require("foo") that would load a foo.m.tl macro file would be much simpler to review and integrate as a new experimental feature. Could you rework this to include just the "minimum viable product" for macro-require?

I have that implemented locally or in a branch I think, let me push it

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants