ARC-0031: Improving mappings #20
Replies: 6 comments 4 replies
-
Thanks @evanmarshall 🙌 this is definitely a desired feature for Aleo instructions. On naming, I like
I think we should gather more thoughts from the community to increase confidence in either direction. |
Beta Was this translation helpful? Give feedback.
-
To preserve consistency with existing syntax, I think store should be expressed as: We also have the option of writing loads and stores as: |
Beta Was this translation helpful? Give feedback.
-
The notation with Just to explore all possibilities, here are some "consistent" pairs that we could use as the operation names:
|
Beta Was this translation helpful? Give feedback.
-
I'm in favor of Another ARC may be more appropriate, but with the support in As for this ARC, I'm in favor of it. We may want to specify as well that |
Beta Was this translation helpful? Give feedback.
-
Tracking progress here: https://github.com/AleoHQ/snarkVM/pull/1190 |
Beta Was this translation helpful? Give feedback.
-
One other note, we should add support to the REST API to support getting the value of a mapping for a particular key. |
Beta Was this translation helpful? Give feedback.
-
arc: 0031
title: Improving mappings
authors: [email protected], [email protected]
discussion: ARC-0031: Improving mappings
topic: Language
status: Draft
created: 10-05-2022
Abstract
Mappings are how Aleo programs store public state. To make them more useful, we should:
Specification
Dependencies
This will impact snarkVM and everything that has snarkVM as a dependency.
Backwards Compatibility
As this is a new feature, no programs should be impacted by adding a new opcode.
Security & Compliance
There should be no regulatory concerns.
Beta Was this translation helpful? Give feedback.
All reactions