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

Feature request: += #11

Open
vicencb opened this issue Oct 1, 2023 · 0 comments
Open

Feature request: += #11

vicencb opened this issue Oct 1, 2023 · 0 comments

Comments

@vicencb
Copy link

vicencb commented Oct 1, 2023

Like :=, this is just syntactic sugar to make makefile writers more comfortable

-- declare string
local flags = '-Wall'
-- declare table
local src = {}
-- when the LHS of += is a string, append one space and RHS
flags += -Os
-- when the LHS of += is a table, append RHS converted to string
src += main.c
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

No branches or pull requests

1 participant