-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathoverview.txt
More file actions
163 lines (154 loc) · 5.08 KB
/
Copy pathoverview.txt
File metadata and controls
163 lines (154 loc) · 5.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
id: overview
title: Overview
sidebar_label: Move
---
Move is a next generation language for secure asset programming. Its primary use case is in
blockchain environments, where Move programs are used to construct state changes. Move allows
developers to write programs that flexibly manage and transfer assets, while providing the security
and protections against attacks on those assets.
### Start Here
<CardsWrapper>
<SimpleTextCard
icon="img/introduction-to-move.svg"
iconDark="img/introduction-to-move-dark.svg"
overlay="Understand Move’s background, current status and architecture"
title="Introduction"
to="/docs/move/move-introduction"
/>
<SimpleTextCard
icon="img/modules.svg"
iconDark="img/modulesdark.svg"
overlay="Understand Move Modules"
title="Modules "
to="/docs/move/move-modules"
/>
</CardsWrapper>
### Primitive Types
<CardsWrapper>
<SimpleTextCard
icon="img/integers-bool.svg"
iconDark="img/integers-bool-dark.svg"
overlay="Move supports three unsigned integer types: u8, u64, and u128"
title="Integers"
to="/docs/move/move-integers"
/>
<SimpleTextCard
icon="img/integers-bool.svg"
iconDark="img/integers-bool-dark.svg"
overlay="bool is Move's primitive type for boolean true and false values."
title="Bool"
to="/docs/move/move-bool"
/>
<SimpleTextCard
icon="img/address.svg"
iconDark="img/address-dark.svg"
overlay="address is a built-in type in Move that is used to represent locations in storage"
title="Address"
to="/docs/move/move-address"
/>
<SimpleTextCard
icon="img/vector.svg"
iconDark="img/vector-dark.svg"
overlay="vector<T> is the only primitive collection type provided by Move"
title="Vector"
to="/docs/move/move-vector"
/>
<SimpleTextCard
icon="img/move-references.svg"
iconDark="img/move-references-dark.svg"
overlay="Move has two types of references: immutable & and mutable &mut"
title="References"
to="/docs/move/move-references"
/>
<SimpleTextCard
icon="img/tuples.svg"
iconDark="img/tuples-dark.svg"
overlay="In order to support multiple return values, Move has tuple-like expressions. We can consider unit() to be an empty tuple"
title="Tuples and Unit"
to="/docs/move/move-tuples-and-unit"
/>
</CardsWrapper>
### Basic Concepts
<CardsWrapper>
<SimpleTextCard
icon="img/local-variables-and-scopes.svg"
iconDark="img/local-variables-and-scopes-dark.svg"
overlay="Local variables in Move are lexically (statically) scoped"
title="Local Variables and Scopes"
to="/docs/move/move-variables"
/>
<SimpleTextCard
icon="img/abort-and-return.svg"
iconDark="img/abort-and-return-dark.svg"
overlay="return and abort are two control flow constructs that end execution, one for the current function and one for the entire transaction"
title="Abort & Assert"
to="/docs/move/move-abort-and-assert"
/>
<SimpleTextCard
icon="img/conditionals.svg"
iconDark="img/conditionals-dark.svg"
overlay="An if expression specifies that some code should only be evaluated if a certain condition is true"
title="Conditionals"
to="/docs/move/move-conditionals"
/>
<SimpleTextCard
icon="img/loops.svg"
iconDark="img/loops-dark.svg"
overlay="Move offers two constructs for looping: while and loop"
title="While and Loop"
to="/docs/move/move-while-and-loop"
/>
<SimpleTextCard
icon="img/functions.svg"
iconDark="img/functions-dark.svg"
overlay="Function syntax in Move is shared between module functions and script functions"
title="Functions"
to="/docs/move/move-functions"
/>
<SimpleTextCard
icon="img/structs.svg"
iconDark="img/structsdark.svg"
overlay="A struct is a user-defined data structure containing typed fields."
title="Structs"
to="/docs/move/move-structs"
/>
<SimpleTextCard
icon="img/constants.svg"
iconDark="img/constants-dark.svg"
overlay="Constants are a way of giving a name to shared, static values inside of a module or script"
title="Constants"
to="/docs/move/move-constants"
/>
<SimpleTextCard
icon="img/generics.svg"
iconDark="img/generics-dark.svg"
overlay="Generics can be used to define functions and structs over different input data types"
title="Generics"
to="/docs/move/move-generics"
/>
<SimpleTextCard
icon="img/equality.svg"
iconDark="img/equality-dark.svg"
overlay="Move supports two equality operations == and !="
title="Equality"
to="/docs/move/move-equality"
/>
<SimpleTextCard
icon="img/uses-and-aliases.svg"
iconDark="img/uses-and-aliases-dark.svg"
overlay="The use syntax can be used to create aliases to members in other modules"
title="Uses & Aliases"
to="/docs/move/move-uses-and-aliases"
/>
</CardsWrapper>
### Reference
<CardsWrapper>
<SimpleTextCard
icon="img/coding-conventions.svg"
iconDark="img/coding-conventions-dark.svg"
overlay="There are basic coding conventions when writing Move code"
title="Coding Conventions"
to="/docs/move/move-coding-conventions"
/>
</CardsWrapper>