Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More kinds of static data for (let) bindings #12

Open
1 of 2 tasks
kiedtl opened this issue Sep 10, 2024 · 0 comments
Open
1 of 2 tasks

More kinds of static data for (let) bindings #12

kiedtl opened this issue Sep 10, 2024 · 0 comments
Labels
lang-enhance Enhance existing language feature

Comments

@kiedtl
Copy link
Owner

kiedtl commented Sep 10, 2024

There should be more possible syntaxes for a let binding value:

  • (embed "path"): Embedded from a path relative to the current file.
  • (fill <value> <count>): As name suggests. Filled at compile-time.

Examples:

(let font [Sprite8] (embed "../assets/atari8.uf2"))`
(let buf [U8 8] (fill 0xFF)) // Inferred

Tracker:

  • (embed)
  • (fill)
@kiedtl kiedtl added the lang-new New language feature proposal label Sep 10, 2024
@kiedtl kiedtl changed the title Cleanup syntax for values of let bindings More kinds of static data for (let) bindings Sep 11, 2024
@kiedtl kiedtl added lang-enhance Enhance existing language feature and removed lang-new New language feature proposal labels Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-enhance Enhance existing language feature
Projects
None yet
Development

No branches or pull requests

1 participant