You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When dynamic keys are required the existing opcodes (app_global_get & app_local_get ) should be used unless a good argument can be made for having additional syntactic sugar for these.
The schemas would be queryable from the Tealish language model of the program to allow other tools to export/consume them.
Needs more fleshing out before implementation.
@barnjamin, do correct me if I have mangled your idea :) And please add any further detail you have in mind at this stage.
The text was updated successfully, but these errors were encountered:
looks pretty good to me! the syntactic sugar for the dynamic (or reserved) state vals is also a potential footgun if you allow something like: LocalState[account].my_dynamics[thing] and no default namespace is applied to the keys
How would you allow declaration of the state vals? is there some context in which they're declared/identified by the parser/compiler?
Tealish could allow the developer to define a schema for Global & Local states. The schema would serve two purposes:
The schema should also allow for dynamically named state fields.
The syntax below is just an idea at this stage
Static state keys could be accessed using a field lookup syntax just like structs & Boxes. e.g
Local state keys could use something like this:
When dynamic keys are required the existing opcodes (
app_global_get
&app_local_get
) should be used unless a good argument can be made for having additional syntactic sugar for these.The schemas would be queryable from the Tealish language model of the program to allow other tools to export/consume them.
Needs more fleshing out before implementation.
@barnjamin, do correct me if I have mangled your idea :) And please add any further detail you have in mind at this stage.
The text was updated successfully, but these errors were encountered: