Subgraphs > Developing > Creating > API AssemblyScript
Problemi comuni di AssemblyScript
There are certain AssemblyScript issues that are common to run into during Subgraph development. They range in debug difficulty, however, being aware of them may help. The following is a non-exhaustive list of these issues:
Private
class variables are not enforced in AssemblyScript. There is no way to protect class variables from being directly changed from the class object.- L’ambito non è ereditato nelle closure functions, cioè le variabili dichiarate al di fuori delle closure functions non possono essere utilizzate. Spiegazione in Developer Highlights #3.