Skip to content

Commit 4e0d3ce

Browse files
committed
read update
1 parent bc91e79 commit 4e0d3ce

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,30 @@ So statements or programs in RoyalScript consist purely of functions and their a
3232

3333
##Types
3434

35-
###Literal
35+
RoyalScript is a dynamically typed language. This means that variables do not have to be declared with a specific type
3636

37-
RoyalScript variables, function names, and struct names, or any name is represented as a literal. A literal is pure representation of data in UTF-8 format.
37+
###Literal
3838

39-
###Primtiive Types
39+
RoyalScript variables, function names, and struct names, or any name is represented as a literal. A literal is pure representation of data in UTF-8 format. For example,
4040

41-
RoyalScript has primitive types and custom or reference types created by structs
41+
```
42+
=(a, 4)
43+
```
44+
This function binds the literal a to 4. Using a in any function call without binding it previously will throw an error.
4245

46+
###Primtive Types
4347

48+
RoyalScript has 5 primitive types
4449

4550
* Number
4651
* String
4752
* Boolean
4853
* List(Array)
49-
* null
50-
* function
54+
* Function
55+
56+
Additionally, the null type exists to represent a *none* or *void* type present in many other languages.
57+
58+
59+
5160

52-
Numbers represented both integers and floats, as JavaScript numbers do.
5361

0 commit comments

Comments
 (0)