Skip to content

Commit

Permalink
Merge pull request #38 from dejenerate/patch-14
Browse files Browse the repository at this point in the history
Update reference-document-variables.md
  • Loading branch information
mathgladiator authored Mar 20, 2021
2 parents 385292b + ff2b5d3 commit dfac473
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/docs/reference-document-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Document Variables & Types

## Fast Intro

As Adama is [a data-centric programming language](https://en.wikipedia.org/wiki/Data-centric_programming_language), the first order of business it organize your [data for state management](https://en.wikipedia.org/wiki/State_management). At the document level, state is laid out as a series of fields. For instance, the below Adama code outlines three fields:
As Adama is [a data-centric programming language](https://en.wikipedia.org/wiki/Data-centric_programming_language), the first order of business is to organize your [data for state management](https://en.wikipedia.org/wiki/State_management). At the document level, state is laid out as a series of fields. For instance, the below Adama code outlines three fields:
```adama
public string output;
private double balance;
Expand All @@ -17,7 +17,7 @@ These three fields will establish a persistent document in JSON:
{"output":"","balance":0.0,"count":0}
```

The [*public* and *private*](/docs/reference-privacy-and-bubbles) control what people will see, and the omission of either results in *private* by default. In this case, people will see
The [*public* and *private*](/docs/reference-privacy-and-bubbles) modifiers control what users will see, and the omission of either results in *private* by default. In this case, users will see:
```js
{"output":""}
````
Expand All @@ -32,11 +32,11 @@ The syntax which Adama parses for this is as follows:

**such that**
* _privacy_ when set may be *private*, *public*, or anything outlined in [the privacy section](/docs/reference-privacy-and-bubbles). In this context, *private* means only the system and code within Adama can see the field while *public* means the system, the code, and any human viewer may see the field. [The privacy section](/docs/reference-privacy-and-bubbles) will outline other ways for humans to see the field.
* _privacy_ when omitted results in a default value of *private* which means no humans can see the field.
* _type_ is the type of the data; see [types for more details](#types).
* _privacy_ when omitted results in a default value of *private* which means no users can see the field.
* _type_ is the type of the data. See [types for more details](#types).
* _expression_ when provided will be computed at the [construction](/docs/reference-constructor) of the document.

The privacy policy of this document is limited and lacks data that people want to and should see. This is unfortunate, but can be corrected by changing the document to.
The privacy policy of this document is limited and lacks data that users want to and should see. This is unfortunate, but can be corrected by changing the document to
```adama
public string output = "Hello World"
private double balance = 13.42;
Expand All @@ -49,7 +49,7 @@ which results in the document persisted and viewed by all with slightly more mea
```
## Built-in Types
Adama has many built-in types, and the following tables outlines which types are available
Adama has many built-in types, and the following tables outline which types are available.
| type | contents | default | fun example |
| --- | --- | --- | --- |
Expand Down

0 comments on commit dfac473

Please sign in to comment.