New comment by paper42 on void-packages repository https://github.com/void-linux/void-packages/pull/42656#issuecomment-1460610011 Comment: this might be for another issue/PR, but we might also want to consider using associative arrays for build_options like this: ``` declare -A buildopts=([docs]=0 [wayland]=1 [xorg]=1) ``` if this was declared before buildopts are used (= usually before configure_args), we could parse the template only once instead of twice if we also used functions for accessing build options instead of variables like currently (because buildopts has to be combined with options from cli args and the config). The only disadvantage I can think of is that it would be ugly to have declare -A right at the top of the template.