Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2605 committed Apr 8, 2021
2 parents ccb121d + 387b345 commit e3fae1f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/docs/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ nav_order: 3

| Type | Example | Note |
| --- | --- | --- |
| String | foo’, “bar | You can use single or double quotes to represent strings in Dictu. |
| Number | 100, 100.5 | This data type includes both integers (whole numbers) and floats (numbers with decimals). |
| Boolean | true, false | Fun fact: Boolean data types are named after Robert Boole. |
| List | [1, 2, ‘hi’, true, nil] | Lists can contain any data type or combination of data types. |
| Dictionary | {“key1: 10, 2: two, true: true, nil: nil”} | Dictionaries have key-value pairs, like a dictionary (Word: Definition). Values can be any of the data types above except lists. |
| Set | `set("1", 1, "1")` will actually mean `{"1", 1}` | Sets are unordered collections of hashable, unique values. You can create a set with the `set()` function. |
| Nil | nil | Don’t confuse `nil` with `null`! While they mean the same thing in the English language, and the latter is more common in programming, `null` has no significance in Dictu. |
| String | `'foo'`, `"bar"` | You can use single or double quotes to represent strings in Dictu. |
| Number | `100`, `100.5` | This data type includes both integers (whole numbers) and floats (numbers with decimals). |
| Boolean | `true`, `false` | Fun fact: Boolean data types are named after George Boole. |
| List | `[1, 2, ‘hi’, true, nil]` | Lists can contain any data type or combination of data types. |
| Dictionary | `{"key1": 10, 2: "two", true: "true", nil: "nil"}` | Dictionaries have key-value pairs, like a dictionary (Word: Definition). Keys must be an immutable data type (strings, numbers, nil or boolean). Values can be any data type. |
| Set | `set("1", 1, "1")` | Sets are unordered collections of immutable, unique values. You can create a set with the `set()` function. |
| Nil | nil | Used to signify no value (much like null in other languages) |
| Result | Success, Error | See [Error Handling section.](/docs/error-handling) |

## Declaring a variable
Expand Down

0 comments on commit e3fae1f

Please sign in to comment.