data: Add sup0port for new BB_HASH_CODEPARSER_VALS for cache optimisation
Perhaps BB_HASH_CODEPARSER_VALS could contain a list of flag names that could then be iterated and the values retrieved safely.
The current implementation will break if any forced value has a white space or a '=' sign. If this variable is to appear in the manual at least these constraints should documented.
Quoted 2 lines · Paulo Neves
Perhaps
BB_HASH_CODEPARSER_VALScould contain a list of flag names that could then be iterated and the values retrieved safely.
That is definitely worth thinking about. The challenge is the added complexity and the extra variable lookups, particularly if people start to make the expressions more complex. I was trying to keep things simple!
Quoted 3 lines
The current implementation will break if any forced value has a white space or a '=' sign. If this variable is to appear in the manual at least these constraints should documented.
Right, I'm assuming that since we're controlling the substitutions, we can avoid issues like that relatively easily. Martin has run into some recipes which are doing .split("-") on PN though.
I'll give this a bit more thought but I am leaning towards keeping things simple if we can.
Cheers,
Richard