Replies: 2 comments 3 replies
-
What's the advantage of this over, say, local variables that are only in scope in the current meson.build file? My assumption is that what you're after here is the ability to have a block of code where you can set variables and have them be specific to that block. That is how the example seems to be getting used. |
Beta Was this translation helpful? Give feedback.
-
The advantage is that those variables are still accessible from other build files. For instance, I often have my lib defined in one build file, and the related tests defined in a different build file. But this is an advantage only if the names can be shortened inside a block, otherwise using prefixes in variables names would be the same. In fact, locally scoped variable was another option I thought about. And a third option would be variable local to current build files and subdirs. What do you think? Would local variables be a better option? But in another hand, would it really change something, as I can just use a convention for local variable names, and simply override its value when I need to? Maybe for memory consumption, but I doubt it would really make a difference. Or it could simply be a |
Beta Was this translation helpful? Give feedback.
-
Since my project is a monorepo, it becomes bigger and bigger, and the number of variables is constantly increasing... I'm wondering if a notion of namespace (or object, not sure how to name it) would be useful. Something like:
What do you think about this idea?
Beta Was this translation helpful? Give feedback.
All reactions