Skip to content

string or function in setup and config keys #474

Answered by wbthomason
AckslD asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is "not really". It largely depends on how you like to organize your config. For instance, if you provide a string requireing some other file, then you don't need to recompile to change your configuration. However, if you prefer to have all your configuration in one place and decrease the number of requires (which can have a small time cost) in your config, then using a function may be better (this becomes more true once I get to the PR making recompilation automatic). There shouldn't be any significant difference in loading time between the two, though, again, this may change with the aforementioned PR (which may make the function style slightly faster; I'll have to expe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AckslD
Comment options

Answer selected by AckslD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants