Build system config file #1309
Closed
ygorpontelo
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
It is really json5, but I am reluctant to rename the file ending, as this reduces the overall support. The intention is really for the format to be used by a program and less so by a user. It might be that I add an editor for the settings, in which case the need for comments goes away and we can forget about the comments entirely. It used to be TOML, but I wanted a format that is more natural that programs manipulate them. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, i'm new to the the language and so far things have worked pretty good and i really like the features so far.
The build system uses json for configuring how the build is going to work, that results in a bunch of errors from my editor on how the default json that the compiler generates is incorrect, following the rules of json that is. This hints to me that maybe the json format is not the best for this objective, so that's why i'm opening this discussion.
If we like the idea of config files, maybe the toml format would be a bit better? It supports all the features we use with json but also allows for comments and the configuration format is more declarative rather than nested with json.
Or maybe we could use a c3 file, kinda like zig does. That way we could do more complicated stuff and possibly integrate better with the "c3 scripts" for building.
I would be interested in helping with any of this if that's the case, but i want to discuss first if it makes sense.
Beta Was this translation helpful? Give feedback.
All reactions