Describe the feature
struct MainContainer {
view MainView
$if !no_log ? {
logger Logger
}
dev_menu DevMenu @[if !no_dev_menu ?]
}
V has a good feature of conditional compilation, but I see no way to make it inside struct declaration.
Please, give me existing workaround if any.
I know I can wrap by $if whole struct now, but it is painful if I have multiple conditions and vls-like apps going crazy
Describe the feature
V has a good feature of conditional compilation, but I see no way to make it inside
structdeclaration.Please, give me existing workaround if any.
I know I can wrap by $if whole struct now, but it is painful if I have multiple conditions and vls-like apps going crazy