Variables aren't expressive enough for easy reuse of scone units #11

Open
opened 2020-11-30 12:18:36 +00:00 by reivilibre · 0 comments
Owner

Common example: supermarket sha256 hashes (and to a lesser degree, URLs).

They vary by system architecture, but there is no way to easily switch those variables except by doing so manually in each host's variables file.

I'd like to extend the variable interpolation/substitution language a bit, introducing dictionary indexing, maybe array indexing, and perhaps a couple of other goodies if justification can be found for them.

At the very least, dictionary indexing would be good and shouldn't require any crazy proofs or operational semantics.

Part of me is tempted with ${var_name.hash_${system.arch}} but maybe it's quite messy?

Common example: `supermarket` sha256 hashes (and to a lesser degree, URLs). They vary by system architecture, but there is no way to easily switch those variables except by doing so manually in each host's variables file. I'd like to extend the variable interpolation/substitution language a bit, introducing dictionary indexing, maybe array indexing, and perhaps a couple of other goodies if justification can be found for them. At the very least, dictionary indexing would be good and shouldn't require any crazy proofs or operational semantics. Part of me is tempted with `${var_name.hash_${system.arch}}` but maybe it's quite messy?
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: reivilibre/scone#11
No description provided.