Variables aren't expressive enough for easy reuse of scone units #11
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: reivilibre/scone#11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?